Assert.assertTrue(type instanceof FeatureType);
Assert.assertFalse(type instanceof SimpleFeatureType);
Assert.assertEquals(typeName, type.getName());
Assert.assertTrue(type.getUserData().get(XSDTypeDefinition.class) instanceof XSDComplexTypeDefinition);
FeatureType wq_plus_Type = (FeatureType) type;
// I do not think types have default geometries any more.
// assertNotNull(wq_plus_Type.getDefaultGeometry());
Assert.assertNotNull(wq_plus_Type.getSuper());
typeName = Types.typeName(GML.NAMESPACE, GML.AbstractFeatureType.getLocalPart());
Assert.assertEquals(typeName, wq_plus_Type.getSuper().getName());
Assert.assertNotNull(wq_plus_Type.getDescriptors());
Assert.assertEquals(8, ((ComplexFeatureTypeImpl) wq_plus_Type).getTypeDescriptors().size());
Name name = Types.typeName(NS_URI, "wq_plus");
AttributeDescriptor wqPlusDescriptor = typeRegistry.getDescriptor(name, null);
Assert.assertNotNull(wqPlusDescriptor);