### Question:
PromptUtils { public void promptForRecording() throws IOException { pressAnyKeyToContinue(); }  void promptForRecording();  }### Answer:
@Test public void callSystemInRead() throws IOException { InputStream inputStream = mock(InputStream.class); System.setIn(inputStream); PromptUtils promptUtils = new PromptUtils(); promptUtils.promptForRecording(); verify(inputStream).read(); }