bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:" + PORT + "/PerRequest");
bp.getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
String result = greeter.greetMe("World");
assertEquals("Hello World", result);
assertEquals("Bonjour default", greeter.sayHi());
}
@Test
public void testInvocationWithSpringBeanAnnotation() throws Exception {
GreeterService service = new GreeterService();
assertNotNull(service);