ReferenceImpl extends XliffElementImpl implements Reference { @Override public List<? extends Element> getChildren() { return Collections.singletonList(child); } ReferenceImpl(Child child);  ReferenceImpl(org.w3c.dom.Element elem); @Override List<? extends Element> getChildren(); Child getChild(); void setChild(Child child);  }
@Test public void testGetChildren() { ReferenceImpl ref = createDefaultReference(); List<? extends com.sap.mlt.xliff12.api.base.Element> children = ref .getChildren(); assertEquals(new Integer(1), new Integer(children.size())); assertEquals(new ExternalFileImpl(new HrefImpl("http: children.get(0)); }