@After
  public void teardownStreams() {
    System.setOut(null);
    System.setErr(null);
  }
Clean up the stream after each test.
ambari-server/src/test/java/org/apache/ambari/server/credentialapi/CredentialUtilTest.java