JAXBTypesafeEnumClass aec = ast.getJAXBTypesafeEnumClass();
assertEquals("USStateAbbr", aec.getName());
assertTrue(!aec.getTypesafeEnumMember().hasNext());
XSEnumeration[] enumerations = ast.getEnumerations();
assertEquals(2, enumerations.length);
JAXBEnumeration e1 = (JAXBEnumeration) enumerations[0];
assertEquals("AK", e1.getValue());
JAXBTypesafeEnumMember m1 = e1.getJAXBTypesafeEnumMember();
assertEquals("STATE_AK", m1.getName());
JAXBEnumeration e2 = (JAXBEnumeration) enumerations[1];
JAXBTypesafeEnumMember m2 = e2.getJAXBTypesafeEnumMember();
assertEquals("STATE_AL", m2.getName());
assertEquals("AL", e2.getValue());
}