org.jvnet.jaxb.reflection.model.runtime.RuntimeTypeInfoSet model = create(PurchaseOrderType.class);
RuntimeClassInfo type = (RuntimeClassInfo)model.getTypeInfo(PurchaseOrderType.class);
Assert.assertEquals(new QName("http://www.example.com/IPO", "PurchaseOrderType"), type.getTypeName());
type = (RuntimeClassInfo)model.getTypeInfo(USAddress.class);
Assert.assertEquals(new QName("http://www.example.com/IPO", "USAddress"), type.getTypeName());
RuntimePropertyInfo prop = type.getProperty("state");
Assert.assertNotNull(prop);
USAddress address = new ObjectFactory().createUSAddress();
prop.getAccessor().set(address, USState.CA);
Assert.assertEquals(USState.CA, address.getState());
}