remove unnecessary function in OutputRedirectProcessorTest.java