}
public void testAutoTypes() throws Exception
{
TypeMappingRegistry tmr = server.getTypeMappingRegistry();
TypeMappingImpl tm = (TypeMappingImpl) 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(