MockControl cycleControl = newControl(IRequestCycle.class);
IRequestCycle cycle = (IRequestCycle) cycleControl.getMock();
Object parameter = new Object();
Creator creator = new Creator();
Submit submit = (Submit) creator.newInstance(Submit.class, new Object[]
{ "listener", listener, "defer", Boolean.TRUE, "parameters", parameter, "listenerInvoker",
new ListenerInvokerTerminator() });
cycle.setListenerParameters(new Object[]
{ parameter });