return new ClassPathXmlApplicationContext("META-INF/spring/service-context.xml");
}
@Test
public void testProvideSpring() {
TransferRequest request = new TransferRequest();
request.setBank("Bank of Camel");
request.setFrom("Jakub");
request.setTo("Scott");
request.setAmount("1");
TransferResponse response = template.requestBody(String.format("cxf:http://localhost:%d/paymentService?serviceClass=org.camelcookbook.ws.payment_service.Payment", port1), request, TransferResponse.class);
assertNotNull(response);
assertEquals("OK", response.getReply());