public void testAjaxSupportWithOnkeyup() throws IOException
{
JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/support.jsf");
JSFClientSession client = jsfSession.getJSFClientSession();
JSFServerSession server = jsfSession.getJSFServerSession();
client.type("name", 'H');
client.type("name", 'e');
client.type("name", 'l');
client.type("name", 'l');
client.type("name", 'o');
client.type("name", ' ');
client.type("name", 'W');
client.type("name", 'o');
client.type("name", 'r');
client.type("name", 'l');
client.type("name", 'd');
Object userBeanValue = server.getManagedBeanValue("#{userBean.name}");
assertEquals("Hello World", userBeanValue);
String valueOfSpan = ((DomNode)client.getElement("outtext")).asText();
assertEquals("Hello World", valueOfSpan);
}