InternalFileImpl extends XliffElementImpl implements InternalFile { @Override public List<? extends Node> getChildren() { return Collections.singletonList(embeddedFile); } InternalFileImpl(Text embeddedFile);  InternalFileImpl(Element elem); @Override List<? extends Node> getChildren(); Crc getCrc(); Text getEmbeddedFile(); Form getForm(); void setCrc(Crc crc); void setEmbeddedFile(Text embeddedFile); void setForm(Form form);  }
@Test public void testGetChildren() { InternalFileImpl intf = createDefaultInternalFile(); List<? extends Node> children = intf.getChildren(); assertEquals(new Integer(1), new Integer(children.size())); assertEquals(new TextImpl("test"), children.get(0)); }