/**
* <p>Verify the availability of an appropriate form.</p>
*/
public void testForm() throws Exception {
HtmlForm form = (HtmlForm) element("usecasesForm");
assertNotNull(form);
assertEquals("", form.getAcceptAttribute());
assertEquals("", form.getAcceptCharsetAttribute());
String action = form.getActionAttribute();
int semicolon = action.indexOf(";jsessionid=");
if (semicolon >= 0) {
action = action.substring(0, semicolon);
}
assertEquals("/shale-usecases/usecases.faces", action);
assertEquals("application/x-www-form-urlencoded", form.getEnctypeAttribute());
assertEquals("", form.getLangAttribute());
assertEquals("post", form.getMethodAttribute());
// assertEquals("", form.getNameAttribute()); // Remove test for RI behavior that is not in the spec
assertEquals("", form.getOnResetAttribute());
assertEquals("", form.getOnSubmitAttribute());
assertEquals("", form.getTargetAttribute());
}