@Test
public void testDeleteAttachments() {

    SW360Release updatedRelease = mock(SW360Release.class);
    Collection<String> attachmentIds = Arrays.asList("at1", "at2", "atMore");
    when(releaseClient.deleteAttachments(release, attachmentIds))
            .thenReturn(CompletableFuture.completedFuture(updatedRelease));
    SW360Release result = block(releaseClientAdapter.deleteAttachments(release, attachmentIds));
    assertThat(result).isEqualTo(updatedRelease);
}