"</wsdl>" +
"</endpoint>" +
"</send>";
OMElement config1 = createOMElement(sendConfig);
SendMediator send1 = (SendMediator) factory.createMediator(config1, new Properties());
OMElement config2 = serializer.serializeMediator(null, send1);
SendMediator send2 = (SendMediator) factory.createMediator(config2, new Properties());
assertTrue("Top level endpoint should be a WSDL endpoint.",
send1.getEndpoint() instanceof WSDLEndpoint);
WSDLEndpoint ep1 = (WSDLEndpoint) send1.getEndpoint();
assertTrue("Top level endpoint should be a WSDL endpoint.",
send2.getEndpoint() instanceof WSDLEndpoint);
WSDLEndpoint ep2 = (WSDLEndpoint) send2.getEndpoint();
assertEquals("Service name is not serialized properly.",
ep1.getServiceName(), ep2.getServiceName());
assertEquals("Port name is not serialized properly", ep1.getPortName(), ep2.getPortName());