@Test
public void testWithNoParams() throws Exception {

    // mock returned views
    doReturn(Collections.emptyList()).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-empty-views.json", this));
}