}
@Test
public void shouldDisplaySearchForm() throws Exception {
FacesPage homePage = tester.requestPage(HOME_PAGE);
FacesComponent searchForm = homePage.getComponentWithId("search");
assertTrue(searchForm.isRendered());
FacesComponent queryInput = homePage.getComponentWithId("search:q");
assertEquals(queryInput.getWrappedComponent().getClientId(), "q", "The prependId attribute on form should be false and the parent id not prepended to the child id");
assertEquals(queryInput.getValueAsString(), null);
FacesComponent searchButton = homePage.getComponentWithId("search:s");
assertEquals(searchButton.getWrappedComponent().getClientId(), "s", "The prependId attribute on form should be false and the parent id not prepended to the child id");
assertTrue(searchButton.getWrappedComponent() instanceof UICommand);
assertEquals(((UICommand) searchButton.getWrappedComponent()).getActionExpression().getExpressionString(), "#{blog.search}");
}