Map<String, Object> props = new HashMap<String, Object>();
props.put("contextMatchStrategy", "stem");
sf.setProperties(props);
ServerImpl svr = (ServerImpl) sf.create();
svr.getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
ClientImpl client = new ClientImpl(getBus(), svr.getEndpoint());
Object[] objects = client.invoke(new QName("http://cxf.apache.org/jra", "getCustomers"),
new GetCustomers());
assertNotNull(objects);
Customers c = (Customers) objects[0];
Customer customer = c.getCustomer().iterator().next();
assertEquals("Dan Diephouse", customer.getName());
GetCustomer getCustomer = new GetCustomer();
getCustomer.setId(customer.getId());
objects = client.invoke(new QName("http://cxf.apache.org/jra", "getCustomer"), getCustomer);
customer = (Customer) objects[0];
assertEquals("Dan Diephouse", customer.getName());
//
// objects = client.invoke(new QName("http://cxf.apache.org/jra", "deleteCustomer"),
// customer.getId());
// assertTrue(objects == null || objects.length == 0);
//
svr.destroy();
}