+ "</xs:schema>";
XSSchema schema = parse(schemaSpec, "jira44.xsd");
XSType[] types = schema.getTypes();
assertEquals(3, types.length);
XSType threeOrFourType = types[0];
XSSimpleType threeOrFourSimpleType = assertSimpleType(threeOrFourType);
XSType restrictedType = assertRestriction(threeOrFourSimpleType);
XSEnumeration[] threeOrFourTypeEnums = threeOrFourSimpleType.getEnumerations();
assertEquals(2, threeOrFourTypeEnums.length);
assertEquals("3", threeOrFourTypeEnums[0].getValue());
assertEquals("4", threeOrFourTypeEnums[1].getValue());
assertEquals(XSString.getInstance(), restrictedType);
XSType outerType1 = types[1];
assertEquals(new XsQName((XsAnyURI) null, "outerType1"), outerType1.getName());
XSComplexType outerType1complexType = assertComplexType(outerType1);
XSSimpleContentType outerType1simpleContentType = assertSimpleContent(outerType1complexType);
XSType outerType1contentType = outerType1simpleContentType.getType();
assertEquals(threeOrFourType, outerType1contentType);
XSType outerType2 = types[2];
assertEquals(new XsQName((XsAnyURI) null, "outerType2"), outerType2.getName());
XSComplexType outerType2complexType = assertComplexType(outerType2);
XSSimpleContentType outerType2simpleContentType = assertSimpleContent(outerType2complexType);
XSType outerType2contentType = outerType2simpleContentType.getType();
assertEquals(threeOrFourType, assertRestriction(outerType2contentType.getSimpleType()));
XSEnumeration[] outerType2Enums = outerType2contentType.getSimpleType().getEnumerations();
assertEquals(1, outerType2Enums.length);
assertEquals("4", outerType2Enums[0].getValue());
}