victim = new ResourceProxyRequestHandler();
Mockito.when(filterConfig.getServletContext()).thenReturn(servletContext);
Context.set(Context.webContext(request, response, filterConfig));
// a more elaborate way to build injector, used to instruct it use a different instance of authorizationManager
final Injector injector = new InjectorBuilder(new BaseWroManagerFactory().setUriLocatorFactory(
mockUriLocatorFactory).setResourceAuthorizationManager(mockAuthorizationManager)).build();
injector.inject(victim);
when(mockUriLocatorFactory.getInstance(anyString())).thenReturn(mockUriLocator);
when(mockUriLocatorFactory.locate(anyString())).then(new Answer<InputStream>() {