@Test(expected = ActionDeniedException.class)
public void testHandleActionInvalidUser() throws Exception {

    // setup params
    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put("url", "dummyurl");
    final User user = new User();
    user.addRole(1, "test role");
    final ActionParameters params = createActionParams(parameters);
    handler.handleAction(params);
    fail("Should not get his far with user without configured roles");
}