params.put("count", new String[]{"11"});
Map<String, Object> context = new HashMap<String, Object>();
context.put(ActionContext.PARAMETERS, params);
loadConfigurationProviders(new XmlConfigurationProvider("xwork-sample.xml"));
ActionProxy proxy = actionProxyFactory.createActionProxy(null, "TestModelDrivenValidation", context);
assertEquals(Action.SUCCESS, proxy.execute());
ModelDrivenAction action = (ModelDrivenAction) proxy.getAction();
assertTrue(action.hasFieldErrors());