Map<String, Object> requestContext = provider.getRequestContext();
requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:" + FaultToEndpointServer.PORT + "/jaxws/greeter");
requestContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES, addrProperties);
greeter.greetMeOneWay("test");
//wait for the fault request
int i = 2;
while (HelloHandler.getFaultRequestPath() == null && i > 0) {
Thread.sleep(500);
i--;