public void testAttributeQNames() throws Exception {
String NS1 = "urn:foo";
MessageContext context = new MessageContext(new AxisServer());
StringWriter writer = new StringWriter();
SerializationContext ser = new SerializationContext(writer);
ser.registerPrefixForURI("", NS1);
ser.startElement(new QName(NS1, "e1"), null);
String foo = ser.attributeQName2String(new QName(NS1, "attr"));
AttributesImpl attrs = new AttributesImpl();
attrs.addAttribute("a", "a", "a", "CDATA", foo);
ser.startElement(new QName(NS1, "e2"), attrs);
ser.endElement();
foo = ser.attributeQName2String(new QName(NS1, "attr"));
attrs = new AttributesImpl();
attrs.addAttribute("a", "a", "a", "CDATA", foo);
ser.startElement(new QName(NS1, "e3"), null);
ser.endElement();
ser.endElement();
System.out.println(writer.getBuffer().toString());
}