assertThat(page.hasError(), is(false));
}
@Test
public void shouldFailFromGenericSpringValidator() throws Exception {
AbstractValidatorPageObject page = pages.get(GenericSpringBeanValidatorPage.class);
page.setInputText("1");
page = page.clickSubmitButton();
assertThat(page.hasError(), is(true));
assertThat(page.getErrorMessage(), is("Value must be 10 or more"));
}