valid(action.getCOSDictionary(), valid, expectedCode);
}
protected void valid(COSDictionary action, boolean valid, String expectedCode) throws Exception
{
ActionManagerFactory fact = new ActionManagerFactory();
PreflightContext ctx = createContext();
COSDictionary dict = new COSDictionary();
dict.setItem(COSName.A, action);
// process the action validation
List<AbstractActionManager> actions = fact.getActionManagers(ctx, dict);
for (AbstractActionManager abstractActionManager : actions)
{
abstractActionManager.valid();
}