TypeMappingRegistry tmr = server.getTypeMappingRegistry();
TypeMappingDelegate tm = (TypeMappingDelegate)tmr.getDefaultTypeMapping();
tm.setDoAutoTypes(true);
QName qname = tm.getTypeQName( AttributeBean.class );
assertEquals( "http://encoding.test",
qname.getNamespaceURI() );
assertEquals( "AttributeBean", qname.getLocalPart() );
assertTrue( tm.getDeserializer(qname) != null );
assertTrue( tm.getSerializer(AttributeBean.class) != null );
assertEquals(
"http://encoding.test",
Namespaces.makeNamespace(AttributeBean[].class.getName()));
assertEquals(
"AttributeBean[]",
Types.getLocalNameFromFullName(AttributeBean[].class.getName()));
// qname = tm.getTypeQName( AttributeBean[].class );
// assertEquals( "http://encoding.test",
// qname.getNamespaceURI() );
// assertEquals( "AttributeBean[]", qname.getLocalPart() );