assertNotNull(schema);
final String targetNs = "http://cite.opengeospatial.org/gmlsf";
final String featureName = "PrimitiveGeoFeature";
QName name = new QName(targetNs, featureName);
XSDElementDeclaration elementDeclaration = Schemas.getElementDeclaration(schema, name);
assertNotNull(elementDeclaration);
XSDComplexTypeDefinition type = (XSDComplexTypeDefinition) elementDeclaration.getType();
assertEquals("PrimitiveGeoFeatureType", type.getName());
assertEquals(targetNs, type.getTargetNamespace());
}