@Test public void testNote() { Note dummyNote = new Note(); dummyNote.setNoteText("Hello"); dummyAttachment.setNote(dummyNote); assertEquals( "Testing Note of Attachment in AttachmentTest", "Hello", dummyAttachment.getNote().getNoteText()); }