}
public void testServerModeDropDownMenu() throws IOException, SAXException
{
JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/dropDownMenu.jsf");
JSFClientSession client = jsfSession.getJSFClientSession();
JSFServerSession server = jsfSession.getJSFServerSession();
client.click("NewServerMode");
String selection = (String)server.getManagedBeanValue("#{ddmenu.current}");
assertEquals("New", selection);
client.click("OpenServerMode");
selection = (String)server.getManagedBeanValue("#{ddmenu.current}");
assertEquals("Open", selection);
client.click("TextFileServerMode");
selection = (String)server.getManagedBeanValue("#{ddmenu.current}");
assertEquals("Save as Text File", selection);
client.click("CloseServerMode");
selection = (String)server.getManagedBeanValue("#{ddmenu.current}");
assertEquals("Close", selection);
client.click("ExitServerMode");
selection = (String)server.getManagedBeanValue("#{ddmenu.current}");
assertEquals("Exit", selection);
}