ComponentResources resources = mockComponentResources();
FieldComponent field = mockFieldComponent();
Messages messages = mockMessages();
TranslatorSource ts = mockTranslatorSource();
FormSupport fs = mockFormSupport();
Translator translator = mockTranslator("map", Map.class);
Messages globalMessages = mockMessages();
MessageFormatter formatter = mockMessageFormatter();
MarkupWriter writer = mockMarkupWriter();
String label = "My Label";
String message = "Formatted Message";
train_getComponent(resources, field);
train_getId(resources, "myfield");
train_getContainerMessages(resources, messages);
train_get(ts, "map", translator);
train_getFormValidationId(fs, "myform");
train_contains(messages, "myform-myfield-map-message", false);
train_contains(messages, "myfield-map-message", false);
train_getMessageKey(translator, "mykey");
train_getMessageFormatter(globalMessages, "mykey", formatter);
train_getLabel(field, label);
train_format(formatter, message, label);
translator.render(field, message, writer, fs);
replay();
FieldTranslatorSource source = new FieldTranslatorSourceImpl(ts, globalMessages, fs);