UnionsDocument.Unions unions = doc.addNewUnions();
unions.setNni("unbounded");
unions.setSizes(Arrays.asList(new Object[] { new Integer(5), new Integer(22) }));
// round trip to s text
String xtext = doc.xmlText();
UnionsDocument docrt = UnionsDocument.Factory.parse(xtext);
// verify contents
Assert.assertEquals("unbounded", docrt.getUnions().getNni());
List sizes = (List)docrt.getUnions().getSizes();