ContextImpl extends XliffElementImpl implements Context { @Override public List<? extends Node> getChildren() { return Collections.singletonList(content); } ContextImpl(ContextType contextType, Text content);  ContextImpl(org.w3c.dom.Element element); @Override List<? extends Node> getChildren(); Text getContent(); ContextType getContextType(); Crc getCrc(); MatchMandatory getMatchMandatory(); void setContent(Text content); void setContextType(ContextType contextType); void setCrc(Crc crc); void setMatchMandatory(MatchMandatory matchMandatory);  }
@Test public void testGetChildren() { ContextImpl context = createDefaultContext(); ArrayList<TextImpl> expected = new ArrayList<TextImpl>(); expected.add(new TextImpl("cont")); assertEquals(expected, context.getChildren()); }