@Test
public void testToString() {

    SW360Release release = new SW360Release();
    release.setName("Test release");
    Path path1 = Paths.get("testAttachment.doc");
    Path path2 = Paths.get("anotherAttachment.json");
    AttachmentUploadRequest<SW360Release> request = AttachmentUploadRequest.builder(release)
            .addAttachment(path1, SW360AttachmentType.LICENSE_AGREEMENT)
            .addAttachment(path2, SW360AttachmentType.REQUIREMENT)
            .build();
    String s = request.toString();
    assertThat(s).contains(path1.toString(), path2.toString(), release.toString());
}