@Test(expected = SW360Exception.class)
public void testDeleteAttachmentUsage() throws Exception {

    AttachmentUsage usage1 = new AttachmentUsage();
    usage1.setOwner(Source.projectId("r1"));
    usage1.setUsedBy(Source.projectId("p1"));
    usage1.setAttachmentContentId("a1");
    handler.makeAttachmentUsage(usage1);
    Assert.assertTrue(usage1.isSetId());
    handler.deleteAttachmentUsage(usage1);
    Assert.assertNull(handler.getAttachmentUsage(usage1.getId()));
}