}
public void testNoDisplayNameInField()
{
MockControl formc = newControl(IForm.class);
IForm form = (IForm) formc.getMock();
IMarkupWriter writer = newWriter();
IRequestCycle cycle = newCycle(form);
MockControl fieldc = newControl(IFormComponent.class);
IFormComponent field = (IFormComponent) fieldc.getMock();
Location l = newLocation();
IPage page = newPage();
FieldLabel fl = (FieldLabel) _creator.newInstance(FieldLabel.class, new Object[]
{ "id", "label", "location", l, "field", field, "page", page, "container", page });
form.prerenderField(writer, field, l);
field.getDisplayName();
fieldc.setReturnValue(null);
field.getExtendedId();