6667686970717273747576
public void testDetach() { Text text = new Text("This will be attached then detached"); empty.appendChild(text); assertEquals(empty, text.getParent()); text.detach(); assertNull(text.getParent()); }