How can I apply Junit test for While(true) loop?
Scanner sc = new Scanner(System.in); while(true) { System.out.println("Enter username"); St