@Test
public void testInputReader()
{
InjectionAnnotationReader c = new InjectionAnnotationReader();
TestAction action = new TestAction();
c.readAnnotations(action.getClass());
Map<String, InjectionWrapper> inputs = c.getInjectionMap();
HttpServletRequest request = EasyMock.createMock(HttpServletRequest.class);
expect(request.getParameter("integerInput")).andReturn("1");
expect(request.getParameter("converted_long")).andReturn("2");
replay(request);
InjectionWrapper inputWrapper = inputs.get("integerInput");
inputWrapper.inject(action, new TestContextImpl(request));
inputWrapper = inputs.get("convertedLongInput");
inputWrapper.inject(action, new TestContextImpl(request));
verify(request);
assert action.getConvertedLongInput() != null;
assert action.getIntegerInput() != null;
assert action.getLongInput() == null;
}