@Test
     public void test() {
        if (!MongoHelper.delete(attachment, "attachments")) {
            TestHelper.failed("delete failed");
        }

        if (MongoHelper.fetch(attachment, "attachments") != null) {
            TestHelper.failed("attachment was not deleted");
        }

        System.out.println("Deleted attachment id: " + attachment.getId());
            
         TestHelper.passed();
     }