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