CountImpl extends XliffElementImpl implements Count { @Override public List<? extends Node> getChildren() { return Collections.singletonList(number); } CountImpl(CountType countType, Text number);  CountImpl(Element element); @Override List<? extends Node> getChildren(); CountType getCountType(); Text getNumber(); PhaseName getPhaseName(); Unit getUnit(); void setCountType(CountType countType); void setNumber(Text number); void setPhaseName(PhaseName phaseName); void setUnit(Unit unit);  }
@Test public void testGetChildren() { CountImpl count = createDefaultCount(); ArrayList<TextImpl> expected = new ArrayList<TextImpl>(); expected.add(new TextImpl("3")); assertEquals(expected, count.getChildren()); }