### Question:
SplitByEveryRadioButton extends RadioButton implements SplitParametersBuilderCreator, RestorableView, ResettableView { void setMaxPages(Integer value) { if (value > 1) { this.field.setValidator(Validators.positiveIntRange(1, value - 1)); } } SplitByEveryRadioButton(ValidableTextField field); @Override SplitByEveryXPagesParametersBuilder getBuilder(Consumer<String> onError); @Override void saveStateTo(Map<String, String> data); @Override void restoreStateFrom(Map<String, String> data); @Override void resetView();  }### Answer:
@Test public void invalidMaxPage() { ValidableTextField field = lookup("#field").queryAs(ValidableTextField.class); victim.setMaxPages(10); assertEquals(ValidationState.NOT_VALIDATED, field.getValidationState()); clickOn(field).write("10").push(KeyCode.ENTER); assertEquals(ValidationState.INVALID, field.getValidationState()); }