assertEquals(Model.State1.class, validator.hints[0]);
}
public void testSmartValidatorWithHintOnTransition() {
Transition transition = new Transition();
transition.setMatchingCriteria(new DefaultTransitionCriteria(new StaticExpression(eventId)));
transition.getAttributes().put("validationHints", new StaticExpression("State1"));
ViewState state = new ViewState(requestContext.getRootFlow(), "state2", new StubViewFactory());
state.getTransitionSet().add(transition);
requestContext.setCurrentState(state);