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

    // mock returned views
    final List<View> views = new ArrayList<View>();
    views.add(ViewTestHelper.createMockView("framework.mapfull"));
    doReturn(views).when(viewService).getViewsForUser(anyLong());
    final ActionParameters params = createActionParams();
    verifyResponseNotWritten(params);
    handler.handleAction(params);
}