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

    // mock returned views
    doReturn(Collections.emptyList()).when(viewService).getViewsForUser(anyLong());
    final ActionParameters params = createActionParams();
    verifyResponseNotWritten(params);
    handler.handleAction(params);
}