public void testValidBindingForm()
{
ActionForward actionForward = new ActionForward();
NavigableFormSubmitBean actionBean = createStrictMock(NavigableFormSubmitBean.class);
ActionMapping mapping = createStrictMock(ActionMapping.class);
DelegatingForm form = createStrictMock(DelegatingForm.class);
HttpServletRequest request = createStrictMock(HttpServletRequest.class);
expect(request.getAttribute(Globals.CANCEL_KEY)).andReturn(null);
actionBean.preBind();
form.bindInwards(actionBean);
actionBean.execute();
expect(actionBean.getSuccessResult()).andReturn("success");
expect(mapping.findForward("success")).andReturn(actionForward);
replay(actionBean);
replay(mapping);
replay(form);