@Test
public void testTransform() throws Exception {
Class faultClass = Class.forName("org.apache.cxf.tools.fortest.cxf523.DBServiceFault");
FaultBean bean = new FaultBean();
WrapperBeanClass beanClass = bean.transform(faultClass, "org.apache.cxf.tools.fortest.cxf523.jaxws");
assertNotNull(beanClass);
assertEquals("DBServiceFaultBean", beanClass.getName());
assertEquals("org.apache.cxf.tools.fortest.cxf523.jaxws", beanClass.getPackageName());
assertEquals(1, beanClass.getFields().size());
JavaField field = beanClass.getFields().get(0);
assertEquals("message", field.getName());
assertEquals("java.lang.String", field.getType());
QName qname = beanClass.getElementName();
assertEquals("DBServiceFault", qname.getLocalPart());
assertEquals("http://cxf523.fortest.tools.cxf.apache.org/", qname.getNamespaceURI());
}