@Test
public void testWithOldIdGiven() throws Exception {

    // setup params
    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put(ActionConstants.PARAM_VIEW_ID, "456");
    parameters.put(GetAppSetupHandler.PARAM_OLD_ID, "123");
    // TODO: setup a cookie with state and see that it shouldn't change the view since a migrated view was requested
    final ActionParameters params = createActionParams(parameters);
    handler.handleAction(params);
    // check that view was not loaded with id, but with old Id
    verify(viewService, never()).getViewWithConf(anyLong());
    verify(viewService, times(1)).getViewWithConfByOldId(123);
}