ExImpl extends InlineBaseImpl implements Ex { public String getPlainText() { EquivText equivText = getEquivText(); if (equivText != null) { return equivText.getValue(); } return ""; } ExImpl(Id id);  ExImpl(Element element); @Override List<? extends Node> getChildren(); String getPlainText(); Rid getRid(); void setRid(Rid rid);  }
@Test public void testGetPlainText() { ExImpl ex = createDefaultEx(); ex.setEquivText(new EquivTextImpl("something")); assertEquals("something", ex.getPlainText()); ex.setEquivText(null); assertEquals("", ex.getPlainText()); }