GImpl extends InlineBaseImpl implements G { public String getPlainText() { StringBuilder sb = new StringBuilder(); for (TextFragment fragment : content) { sb.append(fragment.getPlainText()); } return sb.toString(); } GImpl(Id id, List<? extends TextFragment> content);  GImpl(org.w3c.dom.Element element); @Override List<? extends Node> getChildren(); Clone getClone(); List<? extends TextFragment> getContent(); CtypeDelim getCtype(); String getPlainText(); void setClone(Clone clone); void setContent(List<? extends TextFragment> content); void setCtype(CtypeDelim ctype);  }
@Test public void testGetPlainText() { GImpl g = createDefaultG(); assertEquals("cont", g.getPlainText()); }