@Test
public void testGetReleaseByExternalIds() {

    SW360SparseRelease sparseRelease = new SW360SparseRelease();
    Map<String, String> externalIds = new HashMap<>();
    when(releaseClient.getReleasesByExternalIds(externalIds))
            .thenReturn(CompletableFuture.completedFuture(Collections.singletonList(sparseRelease)));
    Optional<SW360SparseRelease> releaseByExternalIds =
            block(releaseClientAdapter.getSparseReleaseByExternalIds(externalIds));
    assertThat(releaseByExternalIds).isPresent();
    assertThat(releaseByExternalIds).hasValue(sparseRelease);
    verify(releaseClient).getReleasesByExternalIds(externalIds);
}