@Test
public void testIsUserInRole() {

    expect(request.isUserInRole("myrole")).andReturn(true);
    replay(applicationContext, request, response, portletContext, requestDelegate, responseDelegate);
    assertTrue(req.isUserInRole("myrole"));
    verify(applicationContext, request, response, portletContext, requestDelegate, responseDelegate);
}