ControllerAction action = createStrictMock(ControllerAction.class);
HttpServletRequest request = createStrictMock(HttpServletRequest.class);
TestAction actionBean = createStrictMock(TestAction.class);
ActionBeanSource beanSource = createStrictMock(ActionBeanSource.class);
ActionContext actionContext = new TestContextImpl(request);
// check the expected order of method invocation
expect(action.getBeanSource()).andReturn(beanSource);
expect(beanSource.createBean(actionContext)).andReturn(actionBean);
action.preExecute(actionBean, actionContext);