test();
}
public static void test() throws Exception
{
CustomerDocument doc =
CustomerDocument.Factory.parse(
TestEnv.xbeanCase("schema/simple/person.xml"), null);
// Move from the root to the root customer element
Person person = doc.getCustomer();
Assert.assertEquals("Howdy", person.getFirstname());
Assert.assertEquals(4, person.sizeOfNumberArray());
Assert.assertEquals(436, person.getNumberArray(0));
Assert.assertEquals(123, person.getNumberArray(1));
Assert.assertEquals(44, person.getNumberArray(2));