type2.setTypeClass(IMyInterface2.class);
type2.setSchemaType(new QName("urn:MyInterface2", "myInterface2"));
type2.setTypeMapping(mapping);
type2.getTypeInfo().mapType(new QName("urn:MyInterface", "myInterface"), type);
ElementReader reader = new ElementReader(
getResourceAsStream("/org/codehaus/xfire/aegis/type/basic/MyInterface2.xml"));
IMyInterface2 data = (IMyInterface2) type2.readObject(reader, new MessageContext());
assertNotNull(data.getMyInterface());
assertEquals("junk", data.getMyInterface().getName());