@Test
public void testWithNoViewIdAndLoggedInUser() throws Exception {

    final ActionParameters params = createActionParams(getLoggedInUser());
    handler.handleAction(params);
    // check that view was loaded with id 1 as we mocked the default view to be logged in user
    verify(viewService, times(1)).getViewWithConf(1);
    // check that the user is written to the config
    verifyResponseContent(ResourceHelper.readJSONResource("GetAppSetupHandlerTest-view-loggedin.json", this));
}