### Question:
ServletRequest extends AbstractClientRequest { public boolean isUserInRole(String role) { return request.isUserInRole(role); } ServletRequest(
            ApplicationContext applicationContext,
            HttpServletRequest request, HttpServletResponse response); Map<String, String> getHeader(); Addable<String> getResponseHeaders(); Map<String, String[]> getHeaderValues(); Map<String, String> getParam(); @SuppressWarnings("unchecked") Map<String, String[]> getParamValues(); @Override Map<String, Object> getContext(String scope); Map<String, Object> getRequestScope(); Map<String, Object> getSessionScope(); @Override List<String> getAvailableScopes(); void doForward(String path); void doInclude(String path); OutputStream getOutputStream(); Writer getWriter(); PrintWriter getPrintWriter(); boolean isResponseCommitted(); void setContentType(String contentType); Locale getRequestLocale(); HttpServletRequest getRequest(); HttpServletResponse getResponse(); boolean isUserInRole(String role);  }### Answer:
@Test public void testIsUserInRole() { expect(request.isUserInRole("myrole")).andReturn(true); replay(applicationContext, request, response); assertTrue(req.isUserInRole("myrole")); verify(applicationContext, request, response); }