TextImpl extends NodeImpl implements Text { public String getText() { return text; } TextImpl(String text); @Override org.w3c.dom.Text asXmlNode(Document document); String getText(); String getPlainText(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetText() { TextImpl text = new TextImpl("abc"); assertEquals("abc", text.getText()); }