@Override
    public Collection<ReleaseId> getDependencies() {
        return dependenciesByScope.values()
                .stream()
                .flatMap(Collection::stream)
                .collect(Collectors.toList());
    }
@Test
    public void getDependencies() {
        final MavenSession mavenSession = mockMavenSession(false);
        mockDependencies(mavenSession.getCurrentProject());
        final ProjectPomModel pomModel = new ProjectPomModel(mavenSession);
        final Collection<ReleaseId> dependencies = pomModel.getDependencies();
        assertThat(dependencies).isNotNull().hasSize(2);
        assertThat(dependencies).areExactly(1, new Condition<>(
                releaseId -> releaseId instanceof ReleaseIdImpl
                        && DEPENDENCY_GROUP_ID.equals(releaseId.getGroupId())
                        && DEPENDENCY_ARTIFACT_ID1.equals(releaseId.getArtifactId())
                        && DEPENDENCY_VERSION.equals(releaseId.getVersion())
                        && DEPENDENCY_PACKAGING.equals(((ReleaseIdImpl) releaseId).getType()),
                "Is dependency 1"));
        assertThat(dependencies).areExactly(1, new Condition<>(
                releaseId -> releaseId instanceof ReleaseIdImpl
                        && DEPENDENCY_GROUP_ID.equals(releaseId.getGroupId())
                        && DEPENDENCY_ARTIFACT_ID2.equals(releaseId.getArtifactId())
                        && DEPENDENCY_VERSION.equals(releaseId.getVersion())
                        && DEPENDENCY_PACKAGING.equals(((ReleaseIdImpl) releaseId).getType()),
                "Is dependency 2"));
    }