@Test
public void testHandlerInjectingResource() throws Exception {
//When CXF is deployed in a servlet container, ServletContextResourceResolver is used to resolve
//Servlet context resources.
Bus bus = BusFactory.getDefaultBus();
ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
assertNotNull(resourceManager);
resourceManager.addResourceResolver(new TestResourceResolver());
URL wsdl = getClass().getResource("/wsdl/addNumbers.wsdl");
AddNumbersServiceWithAnnotation service = new AddNumbersServiceWithAnnotation(wsdl, serviceName);
AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);