public void test_Render()
{
IRequestCycle cycle = newCycle();
IForm form = newMock(IForm.class);
DataSqueezer squeezer = newMock(DataSqueezer.class);
IMarkupWriter writer = newMarkupWriter();
MockDelegate delegate = new MockDelegate();
Hidden component = newInstance(Hidden.class, new Object[]
{ "name", "fred", "value", new Integer(10),
"encode", Boolean.TRUE, "dataSqueezer", squeezer });
expect(cycle.renderStackPush(component)).andReturn(component);
trainGetForm(cycle, form);
trainWasPrerendered(form, writer, component, false);
trainGetDelegate(form, delegate);
delegate.setFormComponent(component);
trainGetElementId(form, component, "fred");
trainIsRewinding(form, false);
trainIsRewinding(cycle, false);
form.setFormFieldUpdating(true);
expect(squeezer.squeeze(10)).andReturn("i10");
delegate.setFormComponent(component);
form.addHiddenValue("fred", "fred", "i10");