@Test
public void testProcessAttachmentNoReleaseId() {

    SW360Release undefinedRelease = new SW360Release();
    SW360AttachmentUtils.AttachmentDownloadProcessor processor =
            SW360AttachmentUtils.defaultAttachmentDownloadProcessor("test.doc",
                    Paths.get("irrelevant", "path"));
    try {
        block(releaseClientAdapter.processAttachment(undefinedRelease, "1234", processor));
        fail("No exception thrown");
    } catch (SW360ClientException e) {
        assertThat(e.getCause()).isInstanceOf(NullPointerException.class);
        assertThat(e.getMessage()).contains("no ID");
    }
}