
4. Use the Java ByteArrayOutputStream and PrintStream classes to redirect the System.out output for unit testing of the student search method below. private student student; private String id, name, age, email, course; public void setup() { student = new Student(id, name, age, email, course); } public void testSaveStudent() { // Your code here } private static void searchForStudent() { System.out.println(“Enter the student ID to search:”); int searchId = Integer.parseInt(scanner.