{
ActionForward actionForward = new ActionForward();
HttpServletRequest request = createStrictMock(HttpServletRequest.class);
NavigableFormRenderBean actionBean = createStrictMock(NavigableFormRenderBean.class);
ActionMapping mapping = createStrictMock(ActionMapping.class);
DelegatingForm form = createStrictMock(DelegatingForm.class);
ActionErrors errors = new ActionErrors();
errors.add("prop", new ActionMessage("key"));
expect(request.getAttribute(Globals.ERROR_KEY)).andReturn(errors);
actionBean.setInputError(true);
actionBean.execute();
expect(form.getBindOutwards()).andReturn(false);
expect(actionBean.getSuccessResult()).andReturn("success");
expect(mapping.findForward("success")).andReturn(actionForward);
replay(actionBean);
replay(mapping);
replay(form);