private void calculatorTestBase() throws Exception {
URL wsdl = getClass().getResource("/wsdl/calculator.wsdl");
assertNotNull(wsdl);
CalculatorService service = new CalculatorService(wsdl, new QName(
"http://apache.org/cxf/calculator", "CalculatorService"));
CalculatorPortType port = service.getCalculatorPort();
ClientProxy.getClient(port).getInFaultInterceptors().add(new LoggingInInterceptor());
ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
int ret = port.add(1, 2);
assertEquals(ret, 3);
try {