@Test
public void testDefaultBundle()
{
ActionWithDefaultMessageResources action = new ActionWithDefaultMessageResources();
reader.readAnnotations(action.getClass());
inputs = reader.getInjectionMap();
expect(request.getAttribute(Globals.MODULE_KEY)).andReturn(moduleConfig);
expect(moduleConfig.getPrefix()).andReturn("");
expect(context.getAttribute(Globals.MESSAGES_KEY)).andReturn(messageResources);
replay(context);
replay(request);
replay(moduleConfig);
replay(messageResources);
InjectionWrapper inputWrapper = inputs.get("resources");
ActionContext injectionContext = new TestContextImpl(request, null, context, null, null);
inputWrapper.inject(action, injectionContext);
verify(context);
verify(request);
verify(moduleConfig);
verify(messageResources);
assert action.getResources() != null;
}