@Test
public void testAddArtifact() {

    ConfigurationAnalyzer handler = new ConfigurationAnalyzer();
    handler.setAntennaContext(antennaContextMock);
    Set<Artifact> artifacts = handler.yield().getArtifacts();
    assertThat(artifacts.size()).isEqualTo(2);
    Artifact processedArtifact = artifacts.stream()
            .filter(a -> a.askFor(ArtifactFilename.class)
                    .flatMap(ArtifactFilename::getBestFilenameEntryGuess)
                    .filter(afe -> FILENAME.equals(afe.getFilename()))
                    .isPresent())
            .findAny()
            .orElseThrow(() -> new IllegalStateException("should not happen"));
    assertThat(processedArtifact.askFor(ArtifactMatchingMetadata.class)
            .map(ArtifactMatchingMetadata::getMatchState)
            .orElse(null))
            .isEqualTo(Optional.ofNullable(artifactMatchState).orElse(null));
}