@Test
public void testType() throws Exception {
Method m = CustomTypeService.class.getMethod("doFoo", new Class[] {String.class});
AegisType type = creator.createType(m, 0);
tm.register(type);
assertTrue(type instanceof org.apache.cxf.aegis.type.basic.BeanType);
assertEquals(new QName("urn:xfire:foo", "custom"), type.getSchemaType());
type = creator.createType(m, -1);
tm.register(type);
assertTrue(type instanceof org.apache.cxf.aegis.type.basic.BeanType);
assertEquals(new QName("urn:xfire:foo", "custom"), type.getSchemaType());
}