@Test
public void field_error()
{
MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel(), null);
Environment env = newEnvironment();
Field field = newField();
ValidationTracker tracker = newValidationTracker();
train_peekRequired(env, ValidationTracker.class, tracker);
train_inError(tracker, field, true);
train_peekRequired(env, MarkupWriter.class, writer);