ActionMapping mapping = createMock(ActionMapping.class);
HttpServletRequest request = createMock(HttpServletRequest.class);
expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(Boolean.TRUE);
actionBean.cancel();
expect(actionBean.getNavigationResult()).andReturn("cancelled");
expect(mapping.findForward("cancelled")).andReturn(actionForward);
replay(actionBean);
replay(mapping);