client.setThrowExceptionOnFailingStatusCode(true);
HtmlPage page = client.getPage(getPath("/storm.jsf"));
HtmlSubmitInput invalidateSessionButton = getFirstMatchingElement(page, HtmlSubmitInput.class, "invalidateSessionButton");
page = invalidateSessionButton.click();
HtmlInput inputField = getFirstMatchingElement(page, HtmlInput.class, "prop");
Assert.assertEquals(Storm.PROPERTY_VALUE, inputField.getValueAttribute());
// Make another request to verify that the session bean value is not the
// one from the previous invalidated session.
page = client.getPage(getPath("/storm.jsf"));
inputField = getFirstMatchingElement(page, HtmlInput.class, "prop");
Assert.assertEquals(SomeBean.DEFAULT_PROPERTY_VALUE, inputField.getValueAttribute());
}