public void ClassMappingTest1(){
try {
clearMappings();
CtPackage ctPackage = launcher.getFactory().Package().getOrCreate("com.example");
CtClass ctClass = launcher.getFactory().Class().create("com.example.TestClass1");
ctPackage.getTypes().add(ctClass);
scanner.visitCtPackage(ctPackage); // calls visitCtClass which creates the complex type mapping
XSDComplexTypeDefinition complexType = scanner.typeXSDComplexTypeMap.get(ctClass);
assertTrue(complexType != null);
assertTrue(complexType.getName().equals(ctClass.getSimpleName()));
assertTrue(complexType.getTargetNamespace().equals(ctPackage.getQualifiedName()));
}catch(Exception e){
System.err.println("Exception: " + e.getMessage());
assertTrue(false);