public void testNumberSpinners() throws IOException
{
JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/inputNumberSpinner.jsf");
JSFServerSession server = jsfSession.getJSFServerSession();
JSFClientSession client = jsfSession.getJSFClientSession();
RichFacesClient ajaxClient = new RichFacesClient(client);
ajaxClient.setInputNumberSpinner("spinner1", "44");
ajaxClient.clickInputNumberSpinnerUp("spinner1");
client.click("submit");
String value = (String)server.getComponentValue("spinner1");
assertEquals("45", value);
ajaxClient.clickInputNumberSpinnerDown("spinner2");
client.click("submit");
value = (String)server.getComponentValue("spinner2");
assertEquals("40", value);
}