docs: protected void captureSystemStreams() {
          teeOut = new TeePrintStream(new TrOutputStream(systemOut, this), true);
          System.setOut(teeOut);
  
          teeErr = new TeePrintStream(new TrOutputStream(systemErr, this), true);
          System.setErr(teeErr);
      }