W3CEndpointReference w3Epr = impl.createW3CEndpointReference(
"http://myaddress", serviceName, null, 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"));
assertTrue("Interface element expected", sw.toString().contains("Interface"));
assertFalse("ServiceName is unexpected", sw.toString().contains("ServiceName"));
}