public void testAPISerialization4() throws Exception {
String xml = "<api name=\"test\" context=\"/dictionary\" hostname=\"apache.org\" port=\"8243\"" +
" xmlns=\"http://ws.apache.org/ns/synapse\"><resource url-mapping=\"/admin/view\" " +
"outSequence=\"out\"><inSequence><log/><send/></inSequence></resource></api>";
OMElement om = AXIOMUtil.stringToOM(xml);
API api = APIFactory.createAPI(om);
OMElement out = APISerializer.serializeAPI(api);
assertXMLEqual(xml, out.toString());
}