### Question:
ResourceProxyRequestHandler extends RequestHandlerSupport { @Override public boolean accept(final HttpServletRequest request) { return isProxyRequest(request); }  @Override void handle(final HttpServletRequest request, final HttpServletResponse response); @Override boolean accept(final HttpServletRequest request); static String createProxyPath(final String requestUri, final String resourceId); static boolean isProxyUri(final String url); static final String PARAM_RESOURCE_ID; static final String PATH_RESOURCES; static final String ALIAS; }### Answer:
@Test public void shouldAcceptCallsTo_wroResources() { when(request.getRequestURI()).thenReturn("?wroAPI=wroResources&id=test.css"); when(request.getParameter(ResourceProxyRequestHandler.PATH_API)).thenReturn( ResourceProxyRequestHandler.PATH_RESOURCES); when(request.getParameter(ResourceProxyRequestHandler.PARAM_RESOURCE_ID)).thenReturn("test.css"); assertTrue(victim.accept(request)); }
@Test public void shouldNotAcceptCallsTo_OtherUris() { when(request.getRequestURI()).thenReturn("/wro/someOtherUri"); assertFalse(victim.accept(request)); }