{
@Test
public void testPopulateActionForm() throws Exception
{
ServletActionContext sac = getActionContext();
FormValidationHandler formValidationHandler = newMock(FormValidationHandler.class);
ValidateActionForm validateActionForm = getValidateActionForm(formValidationHandler);
ActionMapping actionConfig = newMock(ActionMapping.class);
HttpServletRequest request = newMock(HttpServletRequest.class);
expect(sac.getRequest()).andReturn(request);
expect(sac.getActionConfig()).andReturn(actionConfig);
expect(sac.getFormValid()).andReturn(true);
formValidationHandler.postValidate(request, actionConfig, true);
replayMocks();
validateActionForm.postExecute(sac);
verifyMocks();
}