### Question:
ValidateInput implements Input { @Override public String ask(String question) { return this.input.ask(question); } ValidateInput(final Input input); @Override String ask(String question); int ask(String question, List<Integer> range);  }### Answer:
@Test public void whenInvalidInput() { ValidateInput input = new ValidateInput( new StubInput(new String[] {"invalid", "1"}) ); input.ask("Enter", new ArrayList<>(Collections.singleton(1))); assertThat( this.mem.toString(), is( String.format("Please, enter validate data again.%n") ) ); }