handler.reset();
try
{
DescriptionElement descElem = factory.newDescription();
TypesElement typesImported = descElem.addTypesElement();
ImportedSchema importedSchema = new ImportedSchemaImpl();
importedSchema.setSchemaDefinition(xs1);
importedSchema.setNamespace(schemaNS);
typesImported.addSchema(importedSchema);
if(!val.testAssertionSchema1066(descElem, new QName("http://www.sample.org", "myElement"), reporter))
{
fail("The testAssertionSchema1066 method returned false for a namespace that has been imported.");