successConfig = new ResultConfig(Action.SUCCESS, ServletDispatcherResult.class.getName(), successParams);
results.put(Action.SUCCESS, successConfig);
interceptors.add(new InterceptorMapping("params", new ParametersInterceptor()));
ActionConfig testActionConfig = new ActionConfig(null, TestAction.class, null, results, interceptors);
defaultPackageConfig.addActionConfig(TEST_ACTION_NAME, testActionConfig);
interceptors = new ArrayList();
interceptors.add(new InterceptorMapping("token", new TokenInterceptor()));
results = new HashMap();
ActionConfig tokenActionConfig = new ActionConfig(null, TestAction.class, null, results, interceptors);
tokenActionConfig.addResultConfig(new ResultConfig("invalid.token", MockResult.class.getName()));
tokenActionConfig.addResultConfig(new ResultConfig("success", MockResult.class.getName()));
defaultPackageConfig.addActionConfig(TOKEN_ACTION_NAME, tokenActionConfig);
interceptors = new ArrayList();
interceptors.add(new InterceptorMapping("token-session", new TokenSessionStoreInterceptor()));
results = new HashMap();
successParams = new HashMap();
successParams.put("actionName", EXECUTION_COUNT_ACTION_NAME);