BxImpl extends InlineBaseImpl implements Bx { public String getPlainText() { EquivText equivText = getEquivText(); if (equivText != null) { return equivText.getValue(); } return ""; } BxImpl(Id id);  BxImpl(org.w3c.dom.Element element); @Override List<? extends Node> getChildren(); Clone getClone(); CtypeDelim getCtype(); String getPlainText(); Rid getRid(); void setClone(Clone clone); void setCtype(CtypeDelim ctype); void setRid(Rid rid);  }
@Test public void testGetPlainText() { BxImpl bx = createDefaultBx(); bx.setEquivText(new EquivTextImpl("something")); assertEquals("something", bx.getPlainText()); bx.setEquivText(null); assertEquals("", bx.getPlainText()); }