348349350351352353354355356357358
public void testDetach() { Comment comment = new Comment("This will be attached then detached"); doc.appendChild(comment); assertEquals(doc, comment.getParent()); comment.detach(); assertNull(comment.getParent()); } public void testGetDocument() {