@Test
public void testProcessAttachment() {

    final String attachmentId = "attach-test-id";
    final Integer result = 42;
    @SuppressWarnings("unchecked")
    SW360AttachmentAwareClient.AttachmentProcessor<Integer> processor =
            mock(SW360AttachmentAwareClient.AttachmentProcessor.class);
    addSelfLink(release);
    when(releaseClient.processAttachment(RELEASE_HREF, attachmentId, processor))
            .thenReturn(CompletableFuture.completedFuture(result));
    Integer processResult = block(releaseClientAdapter.processAttachment(release, attachmentId, processor));
    assertThat(processResult).isEqualTo(result);
}