NoteImpl extends XliffElementImpl implements Note { @Override public List<? extends Node> getChildren() { return Collections.singletonList(note); } NoteImpl(Text note);  NoteImpl(Element elem); @Override List<? extends Node> getChildren(); Annotates getAnnotates(); From getFrom(); Text getNote(); Priority getPriority(); XmlLang getXmlLang(); void setAnnotates(Annotates annotates); void setFrom(From from); void setNote(Text note); void setPriority(Priority priority); void setXmlLang(XmlLang xmlLang);  }
@Test public void testGetChildren() { NoteImpl note = createDefaultNote(); List<? extends Node> children = note.getChildren(); assertEquals(new Integer(1), new Integer(children.size())); assertEquals(new TextImpl("test"), children.get(0)); }