ActionMapping mapping = createStrictMock(ActionMapping.class);
BasicActionForm form = createStrictMock(BasicActionForm.class);
HttpServletRequest request = createStrictMock(HttpServletRequest.class);
expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(Boolean.TRUE);
expect(actionBean.cancel()).andReturn("success");
expect(mapping.findForward("success")).andReturn(actionForward);
replay(actionBean);
replay(mapping);
replay(form);