{
ListsDocument doc = ListsDocument.Factory.newInstance();
ListsDocument.Lists lists = doc.addNewLists();
lists.setIntList(Arrays.asList(new Object[] { new Integer(4), new Integer(18) }));
lists.setNniList(Arrays.asList(new Object[] { BigInteger.valueOf(1), BigInteger.valueOf(2), "unbounded" }));
String xtext = doc.xmlText();
ListsDocument docrt = ListsDocument.Factory.parse(xtext);
List intList = docrt.getLists().getIntList();
Assert.assertEquals(new Integer(4), intList.get(0));
Assert.assertEquals(new Integer(18), intList.get(1));