select.setModel(new SelectModelImpl(null, options));
select.setValueEncoder(new StringValueEncoder());
select.setValue("barney");
select.setValidationTracker(tracker);
MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel());
writer.element("select");
select.options(writer);
writer.end();
// fred will be selected, not barney, because the validation tracker
// takes precendence.
assertEquals(writer.toString(), read("current_selection_from_validation_tracker.txt"));
verify();
}