private static boolean printRenderedOutput = false;
@Test
public void submittedConferenceShouldBeSaved() throws Exception
{
JSFSession jsfSession = new JSFSession("/submit.jsf");
JSFServerSession server = jsfSession.getJSFServerSession();
assertEquals("/submit.xhtml", server.getCurrentViewID());
assertEquals(null, server.getManagedBeanValue("#{conference.title}"));
assertEquals(null, server.getManagedBeanValue("#{conference.startDate}"));
assertEquals(null, server.getManagedBeanValue("#{conference.endDate}"));
assertEquals(null, server.getManagedBeanValue("#{conference.location}"));
assertEquals(null, server.getManagedBeanValue("#{conference.topic}"));
JSFClientSession client = jsfSession.getJSFClientSession();
if (printRenderedOutput)
{
System.out.println("GET /submit.jsf HTTP/1.1\n\n" + client.getPageAsText());
}