@Test
public void testDelegating()
{
InjectionAnnotationReader c = new InjectionAnnotationReader();
ActionWithActionForm action = new ActionWithActionForm();
c.readAnnotations(action.getClass());
Map<String, InjectionWrapper> injectionHandlers = c.getInjectionMap();
ActionForm actionForm = new SimpleForm();
DelegatingForm delegator = new DelegatingForm(actionForm);
InjectionWrapper inputWrapper = injectionHandlers.get("actionForm");
ActionContext injectionContext = new TestContextImpl(delegator, null);
inputWrapper.inject(action, injectionContext);
assert action.getActionForm() != null;
assert action.getActionForm() == actionForm;
}