XImpl extends InlineBaseImpl implements X { public String getPlainText() { EquivText equivText = getEquivText(); if (equivText != null) { return equivText.getValue(); } return ""; } XImpl(Id id);  XImpl(org.w3c.dom.Element element); @Override List<? extends Node> getChildren(); Clone getClone(); CtypePh getCtype(); String getPlainText(); void setClone(Clone clone); void setCtype(CtypePh ctype);  }
@Test public void testGetPlainText() { XImpl x = createDefaultX(); x.setEquivText(new EquivTextImpl("something")); assertEquals("something", x.getPlainText()); x.setEquivText(null); assertEquals("", x.getPlainText()); }