@Test
public void testResultSize() {

    int size = 3;
    MvnDependencyTreeAnalyzer analyzer = new MvnDependencyTreeAnalyzer();
    analyzer.setAntennaContext(antennaContextMock);
    when(antennaContextMock.getGeneric(WrappedDependencyNodes.class))
            .thenReturn(Optional.of(getNodes(size)));
    WorkflowStepResult result = analyzer.yield();
    assertThat(result.getArtifacts()).hasSize(size);
}