@Test public void test() throws Exception { String inputXml = "<endpoint xmlns=\"http://ws.apache.org/ns/synapse\">" + "<default format=\"soap11\" />" + "</endpoint>"; OMElement inputElement = createOMElement(inputXml); DefaultEndpoint endpoint = (DefaultEndpoint) DefaultEndpointFactory .getEndpointFromElement(inputElement, true, null); OMElement serializedResponse = DefaultEndpointSerializer.getElementFromEndpoint(endpoint); assertTrue("Endpoint not serialized!", compare(serializedResponse, inputElement)); } }