@Test
public void testWithViewIdGiven() throws Exception {

    // setup params
    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put(ActionConstants.PARAM_VIEW_ID, "3");
    // TODO: setup a cookie with state and see that it shouldn't change the view since a specific non-default view was requested
    // TODO: create a test without giving viewId and see that the cookie affects it
    final ActionParameters params = createActionParams(parameters);
    handler.handleAction(params);
    // check that view was loaded with id 3 as requested
    verify(viewService, times(1)).getViewWithConf(3);
    // check that the response matches expected
    verifyResponseContent(ResourceHelper.readJSONResource("GetAppSetupHandlerTest-view-3.json", this));
}