* local name of type to check
*/
@SuppressWarnings("unchecked")
private static void checkChildElementTypes(String filename, String namespace, String name) {
ResourceSet resourceSet = XSDSchemaImpl.createResourceSet();
XSDResourceImpl resource = (XSDResourceImpl) resourceSet.getResource(
URI.createURI(EmfXsdLoadTest.class.getResource(filename).toString()), true);
XSDSchema schema = resource.getSchema();
Assert.assertNotNull(schema);
SchemaIndex index = null;
XSDTypeDefinition type = null;
try {
index = new SchemaIndexImpl(new XSDSchema[] { schema });