public void testSingleElementSelect() {
addPageRequest("http://test.com",
newHtml("Test Page", newForm("form").id("form").beginSelect("person").addOption("Peter", "1").addOption("John", "2").addSelectedOption("Susanna", "3").end()));
addPageRequest("http://test.com/form?person=1", newHtml("OK", ""));
AbstractDocument page = agent().get("http://test.com");
Form form = page.forms().find("#form");
Select select = form.findSelect(byIdOrName("person"));
assertFalse(select.isMultiple());
assertEquals(3, select.getOptions().size());
Option peter = select.getOption("Peter");