EndpointReferenceUtils.setInterfaceName(ref, PORT_TYPE_CALLBACK);
} catch (Exception e) {
e.printStackTrace();
}
NestedCallback callbackObject = new NestedCallback();
Source source = EndpointReferenceUtils.convertToXML(ref);
W3CEndpointReference w3cEpr = new W3CEndpointReference(source);
callbackObject.setCallback(w3cEpr);
String resp = port.registerCallback(callbackObject);
assertEquals("registerCallback called", resp);
}