FormWrapper delegate = createMock(FormWrapper.class);
DelegatingForm form = createMock(DelegatingForm.class);
expect(delegate.wrapForm(form, null)).andReturn(form);
delegate.handleBindingForm(form, null);
delegate.handleValidForm(form, null);
replay(delegate);
ControllerRequestProcessor processor = new ControllerRequestProcessor();
processor.setFormHandler(delegate);