Field fielda = newFieldWithControlName("fieldA");
Field fieldb = newFieldWithControlName("fieldB");
replay();
ValidationTracker tracker = new ValidationTrackerImpl();
tracker.recordError("one");
tracker.recordInput(fieldb, "input b");
tracker.recordError(fieldb, "fieldb: two");
tracker.recordError("three");
tracker.recordInput(fielda, "input a");
tracker.recordError(fielda, "fielda: four");
tracker.clear();
assertFalse(tracker.getHasErrors());
assertTrue(tracker.getErrors().isEmpty());
assertNull(tracker.getInput(fielda));
assertNull(tracker.getInput(fieldb));
verify();
}