W3CEndpointReference w3Epr = impl.createW3CEndpointReference(
"http://myaddress", null, serviceName, null, null, null, null, null, null);
java.io.StringWriter sw = new java.io.StringWriter();
StreamResult result = new StreamResult(sw);
w3Epr.writeTo(result);
assertTrue("Address is expected", sw.toString().contains("Address"));
assertTrue("Metadata element expected", sw.toString().contains("Metadata"));
assertFalse("Interface element unexpected", sw.toString().contains("Interface"));
assertTrue("ServiceName is expected", sw.toString().contains("ServiceName"));
}