}
}
@Test
public void testServiceInterfaceStrategyWithRequestWrapperAndClient() {
ServiceInterfaceStrategy strategy = new ServiceInterfaceStrategy(
com.example.customerservice2.CustomerService.class, true);
QName elName = strategy.findQNameForSoapActionOrType("", com.example.customerservice2.GetCustomersByName.class);
assertEquals("http://customerservice2.example.com/", elName.getNamespaceURI());
assertEquals("getCustomersByName", elName.getLocalPart());
try {
elName = strategy.findQNameForSoapActionOrType("test", Class.class);
fail();
} catch (RuntimeCamelException e) {
LOG.debug("Caught expected message: " + e.getMessage());
}
}