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();
fieldc.setReturnValue("Fred/field");
replayControls();
try
{
fl.render(writer, cycle);
unreachable();
}
catch (BindingException ex)
{
assertEquals(