IMarkupWriter writer = newWriter();
IRequestCycle cycle = newCycle(field);
MockControl translatorControl = newControl(Translator.class);
Translator translator = (Translator) translatorControl.getMock();
field.getForm();
fieldControl.setReturnValue(form);
form.isClientValidationEnabled();
formControl.setReturnValue(true);
field.getForm();
fieldControl.setReturnValue(form);
form.getName();
formControl.setReturnValue("myform");
field.getName();
fieldControl.setReturnValue("myfield");
field.getTranslator();
fieldControl.setReturnValue(translator);
translator.renderContribution(writer, cycle, new FormComponentContributorContextImpl(field), field);
translatorControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
{ new EqualsMatcher(), new EqualsMatcher(), new TypeMatcher(), new EqualsMatcher() }));
replayControls();