JAXBElement<PurchaseOrderType> wrapper = factory.createPurchaseOrder(po);
handler.setChild(wrapper, 2, null, "Comment");
}
public void testGetChildren() {
ObjectFactory factory = new ObjectFactory();
PurchaseOrderType po = factory.createPurchaseOrderType();
po.setComment("Comment");
JAXBElement<PurchaseOrderType> wrapper = factory.createPurchaseOrder(po);
List children = handler.getChildren(wrapper, null, null);
assertNotNull(children);
assertEquals(4, children.size());
assertEquals("Comment", children.get(2));
assertNull(children.get(0));