@Test
public void testGetReleaseByExternalIdsMultiple() {

    Map<String, String> externalIds = new HashMap<>();
    when(releaseClient.getReleasesByExternalIds(externalIds))
            .thenReturn(CompletableFuture.completedFuture(Arrays.asList(
                    new SW360SparseRelease(), new SW360SparseRelease())));
    try {
        block(releaseClientAdapter.getSparseReleaseByExternalIds(externalIds));
        fail("Multiple results not detected");
    } catch (SW360ClientException e) {
        assertThat(e.getMessage()).contains("Multiple releases");
    }
}