public void testSetGetFaultCodeAsName2() throws Exception {
QName qname = SOAPConstants.SOAP_SENDER_FAULT;
SOAPFactory fac = SOAPFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
Name name = fac.createName(qname.getLocalPart(),
qname.getPrefix(), qname.getNamespaceURI());
SOAPFault sf = fac.createFault();
sf.setFaultCode(name);
Name name2 = sf.getFaultCodeAsName();
assertNotNull(name2);
assertEquals(name.getLocalName(), name2.getLocalName());