DeclaredType stringType = Context.getCurrentEnvironment().getTypeUtils().getDeclaredType(getDeclaration("java.lang.String"));
XmlType stringXmlType = XmlTypeFactory.getXmlType(stringType);
assertSame(KnownXmlType.STRING, stringXmlType);
assertSame(stringXmlType, XmlTypeFactory.getXmlType(String.class));
ClassDeclaration decl = (ClassDeclaration) getDeclaration("org.codehaus.enunciate.samples.anotherschema.BeanThree");
ComplexTypeDefinition definition = new ComplexTypeDefinition(decl);
model.add(definition);
DeclaredType beanThreeType = Context.getCurrentEnvironment().getTypeUtils().getDeclaredType(decl);
assertNotNull("The xml type for bean three should have been created.", XmlTypeFactory.getXmlType(beanThreeType));
}