In our application, we expect user input within a Thread as follows :
Thread
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
What you want to do is use the method setIn() from System. This will let you pass data into System.in from junit.
System.in