}
public void testRequestUsingPOJOWithXStreamMarshaling() throws Exception {
QName service = new QName("http://servicemix.org/cheese/", "myService");
ServiceMixClient client = (ServiceMixClient) context.getBean("clientWithXStream");
Map properties = new HashMap();
properties.put("name", "James");
EndpointResolver resolver = client.createResolverForService(service);
TestBean bean = new TestBean();
bean.setName("James");
bean.setLength(12);
bean.getAddresses().addAll(Arrays.asList(new String[] {"London", "LA"}));
Object response = client.request(resolver, null, properties, bean);
assertNotNull("Should have returned a non-null response!", response);
System.out.println("Received result: " + response);
}