@Test
public void testUploadAttachmentsSkipUploads() throws IOException {

    Path uploadPath = createTestFile(attachmentPath("upload.doc"), TEST_FILE_CONTENT);
    SW360AttachmentType attachmentType = SW360AttachmentType.SOURCE;
    SW360SparseAttachment attachment = createAttachment(uploadPath.getFileName().toString(), attachmentType);
    SW360Release release = addAttachment(createRelease(RELEASE_NAME), attachment);
    Map<Path, SW360AttachmentType> attachments = Collections.singletonMap(uploadPath, attachmentType);
    AttachmentUploadResult<SW360Release> uploadResult =
            metaDataUpdater.uploadAttachments(release, attachments, false);
    assertThat(uploadResult).isEqualTo(new AttachmentUploadResult<>(release));
}