assertMoviesPresent(page);
page = webClient.getPage("http://localhost:9999/moviefun/faces/movie/List.xhtml");
assertMoviesPresent(page);
webClient.closeAllWindows();
}
private void assertMoviesPresent(HtmlPage page) {
String pageAsText = page.asText();
assertTrue(pageAsText.contains("Wedding Crashers"));