title: getting input in advance in JUnit test
body: <p>I am creating JUnit and testing the method below:</p>
  
  <pre><code>public static String readLine() throws IOException{
  
     BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
     return stdin.readLine();
  }
  </code></pre>
  
  <p>I want to make the input string in the JUnit test method in advance, not in readLine() by getting inputput in console by myself.</p>
  
  <p>How can I do that?</p>