serviceFactory.setServiceClass(GreeterImpl.class);
EndpointImpl endpoint = new EndpointImpl(getBus(), greeter,
new JaxWsServerFactoryBean(serviceFactory));
endpoint.getFeatures().add(new WSAddressingFeature());
try {
String address = "http://localhost:8080/test";
endpoint.publish(address);
} catch (IllegalArgumentException ex) {
assertTrue(ex.getCause() instanceof BusException);