SegSourceImpl extends XliffElementImpl implements SegSource { public List<? extends TextFragment> getContent() { return Collections.unmodifiableList(content); } SegSourceImpl(List<? extends TextFragment> content);  SegSourceImpl(Element element); @Override List<? extends Node> getChildren(); List<? extends TextFragment> getContent(); Collection<NonXliffAttribute> getNonXliffAttributes(); String getPlainText(); Ts getTs(); XmlLang getXmlLang(); void setContent(List<? extends TextFragment> content); void setNonXliffAttributes(
			Collection<NonXliffAttribute> nonXliffAttributes); void setTs(Ts ts); void setXmlLang(XmlLang xmlLang);  }
@Test public void testSegSourceImplListOfQextendsTextFragment() { SegSourceImpl source = createDefaultSegSource(); assertEquals(createDefaultContent(), source.getContent()); }
@Test public void testSourceImplElement() { Document doc = Utils.createDocument(); Element elem = doc.createElementNS(XLIFF_12_NAMESPACE, "seg-source"); List<TextFragment> content = createDefaultContent(); for (TextFragment tf : content) { elem.appendChild(tf.asXmlNode(doc)); } try { SegSourceImpl source = new SegSourceImpl(elem); assertEquals(createDefaultContent(), source.getContent()); } catch (ConstraintViolationException e) { fail("Did not expect ConstraintViolationException"); } }