EptImpl extends InlineBaseImpl implements Ept { public List<? extends CodeFragment> getContent() { return Collections.unmodifiableList(content); } EptImpl(Id id, List<? extends CodeFragment> content);  EptImpl(Element element); @Override List<? extends Node> getChildren(); List<? extends CodeFragment> getContent(); Crc getCrc(); String getPlainText(); Rid getRid(); void setContent(List<? extends CodeFragment> content); void setCrc(Crc crc); void setRid(Rid rid);  }
@Test public void testEptImplIdListOfQextendsCodeFragment() { EptImpl ept = createDefaultEpt(); assertEquals(new IdImpl("1"), ept.getId()); assertEquals(createDefaultContent(), ept.getContent()); }
@Test public void testEptImplElement() { Document doc = Utils.createDocument(); Element elem = doc.createElementNS(XLIFF_12_NAMESPACE, "ept"); elem.setAttributeNS(null, "id", "1"); List<CodeFragment> fragments = createDefaultContent(); for (CodeFragment fragment : fragments) { elem.appendChild(fragment.asXmlNode(doc)); } try { EptImpl ept = new EptImpl(elem); assertEquals(new IdImpl("1"), ept.getId()); assertEquals(createDefaultContent(), ept.getContent()); } catch (ConstraintViolationException e) { fail("Did not expect ConstraintViolationException"); } }