@VisibleForTesting
  static boolean isProgressFooterEnabled(MavenSession session) {
    if (!session.getRequest().isInteractiveMode()) {
      return false;
    }

    if ("plain".equals(System.getProperty(PropertyNames.CONSOLE))) {
      return false;
    }

    // Enables progress footer when ANSI is supported (Windows or System.console() not null and TERM
    // not 'dumb').
    if (Os.isFamily(Os.FAMILY_WINDOWS)) {
      return true;
    }
    return System.console() != null && !"dumb".equals(System.getenv("TERM"));
  }
@Test
  public void isProgressFooterEnabled() {
    when(mockMavenRequest.isInteractiveMode()).thenReturn(false);
    assertThat(MavenProjectProperties.isProgressFooterEnabled(mockMavenSession)).isFalse();
  }