@Test
public void testFindReleaseForArtifactNotPresentComponent() {

    final String version = "version";
    final Artifact artifact = new Artifact()
            .addFact(new ArtifactCoordinates(new Coordinate("name", version)));
    final String componentName = ArtifactToComponentUtils.createComponentName(artifact);
    when(componentClientAdapter.getComponentByName(componentName))
            .thenReturn(Optional.empty());
    setUp();
    final Optional<SW360Release> releaseForArtifact = metaDataReceiver.findReleaseForArtifact(artifact);
    assertThat(releaseForArtifact).isNotPresent();
    verify(componentClientAdapter, times(1)).getComponentByName(componentName);
    verify(releaseClientAdapter, never()).getReleaseByVersion(any(), any());
}