@Test
public void testProjectIsAnalyzedCorrectly() {

    MvnDependencyTreeAnalyzer analyzer = new MvnDependencyTreeAnalyzer();
    analyzer.setAntennaContext(antennaContextMock);
    when(antennaContextMock.getGeneric(WrappedDependencyNodes.class))
            .thenReturn(Optional.of(getNodes(1)));
    WorkflowStepResult result = analyzer.yield();
    assertThat(result.getArtifacts()).hasSize(1);
    Artifact actualArtifact = result.getArtifacts().iterator().next();
    Artifact expectedArtifact = getExpectedArtifact(0);
    assertThat(actualArtifact.getAnalysisSource()).isEqualTo(expectedArtifact.getAnalysisSource());
    assertThat(actualArtifact.askFor(ArtifactMatchingMetadata.class).get().getMatchState())
            .isEqualTo(expectedArtifact.askFor(ArtifactMatchingMetadata.class).get().getMatchState());
    assertThat(actualArtifact.getArtifactIdentifiers())
            .isEqualTo(expectedArtifact.getArtifactIdentifiers());
}