@Test
public void testViewListingWithNoParams() 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(getLoggedInUser());
    verifyResponseNotWritten(params);
    handler.handleAction(params);
    // test that response was written once
    verifyResponseWritten(params);
    verifyResponseContent(ResourceHelper.readJSONResource("GetViewsHandlerTest-has-views.json", this));
}