<BUG>.andExpect(xpath("//h:form[@method='POST']/@name", namespaces).string("addEvent")).andReturn();</BUG><CONTEXT>public void testCreatesHtmlFormForPost() throws Exception {MvcResult result = this.mockMvc.perform(get("/events").accept(MediaType.TEXT_HTML)).andExpect(status().isOk()).andExpect(content().contentType(MediaType.TEXT_HTML)).andExpect(xpath("h:html/h:body/h:form[@method='POST']/@action", namespaces).string("http://localhost/events"))<extra_id_0>LOG.debug(result.getResponse().getContentAsString());}</CONTEXT>
.andExpect(xpath("//h:form[@name='addEvent']/h:div/h:select[@name='eventStatus']", namespaces).exists()).andExpect(xpath("//h:form[@name='addEvent']/h:div/h:select[@name='typicalAgeRange']", namespaces).exists()).andReturn();