@VisibleForTesting
  static boolean isRichConsole(ConsoleOutput consoleOutput, HttpTraceLevel httpTraceLevel) {
    if (httpTraceLevel != HttpTraceLevel.off) {
      return false;
    }

    switch (consoleOutput) {
      case plain:
        return false;
      case auto:
        // Enables progress footer when ANSI is supported (Windows or TERM not 'dumb').
        return System.getProperty("os.name").startsWith("windows")
            || (System.console() != null && !"dumb".equals(System.getenv("TERM")));
      case rich:
      default:
        return true;
    }
  }
@Test
  public void testIsRichConsole_true() {
    assertThat(CliLogger.isRichConsole(ConsoleOutput.rich, HttpTraceLevel.off)).isTrue();
  }