### Question:
ModelAsJsonRequestHandler extends RequestHandlerSupport { @Override public boolean accept(final HttpServletRequest request) { return WroUtil.matchesUrl(request, ENDPOINT_URI); }  @Override void handle(final HttpServletRequest request, final HttpServletResponse response); @Override boolean accept(final HttpServletRequest request); @Override boolean isEnabled(); static final String ENDPOINT_URI; static final String ALIAS; }### Answer:
@Test public void shouldAcceptRequestsWithCorrectURI() { when(mockRequest.getRequestURI()).thenReturn(ModelAsJsonRequestHandler.ENDPOINT_URI); assertTrue(victim.accept(mockRequest)); }
@Test public void shouldNotAcceptRequestsWithWrongURI() { when(mockRequest.getRequestURI()).thenReturn("/path/to/anotherURI"); assertFalse(victim.accept(mockRequest)); }
@Test public void shouldAcceptUri() { when(mockRequest.getRequestURI()).thenReturn("wroApi/model"); final boolean accept = victim.accept(mockRequest); assertTrue(accept); }