BinUnitImpl extends XliffElementImpl implements BinUnit { @Override public List<? extends Node> getChildren() { ArrayList<Node> ret = new ArrayList<Node>(); ret.add(binSource); if (binTarget != null) { ret.add(binTarget); } ret.addAll(context); ret.addAll(nonXliffElements); return ret; } BinUnitImpl(Id id, MimeType mimeType, BinSource binSource);  BinUnitImpl(org.w3c.dom.Element element); @Override List<? extends Node> getChildren(); Approved getApproved(); BinSource getBinSource(); BinTarget getBinTarget(); List<? extends Context> getContext(); Id getId(); MimeType getMimeType(); Collection<NonXliffAttribute> getNonXliffAttributes(); List<NonXliffElement> getNonXliffElements(); PhaseName getPhaseName(); Reformat getReformat(); ResName getResName(); ResType getResType(); Translate getTranslate(); com.sap.mlt.xliff12.api.attribute.Ts getTs(); void setApproved(Approved approved); void setBinSource(BinSource binSource); void setBinTarget(BinTarget binTarget); void setContext(List<? extends Context> context); void setId(Id id); void setMimeType(MimeType mimeType); void setNonXliffAttributes(
			Collection<NonXliffAttribute> nonXliffAttributes); void setNonXliffElements(List<NonXliffElement> nonXliffElements); void setPhaseName(PhaseName phaseName); void setReformat(Reformat reformat); void setResName(ResName resName); void setResType(ResType resType); void setTranslate(Translate translate); void setTs(com.sap.mlt.xliff12.api.attribute.Ts ts);  }
@Test public void testGetChildren() { BinUnitImpl bu = createDefaultBinUnit(); bu.setBinTarget(createDefaultBinTarget()); ArrayList<BinUnit.Context> context = new ArrayList<BinUnit.Context>(); context.add(createDefaultCountGroup()); bu.setContext(context); ArrayList<NonXliffElement> nxes = new ArrayList<NonXliffElement>(); nxes.add(createDefaultNonXliffElement()); bu.setNonXliffElements(nxes); List<? extends Node> children = bu.getChildren(); assertEquals(new Integer(4), new Integer(children.size())); }