public synchronized boolean isUnsupportedBrowserEnvironment() {
    String environment = getEnvironmentName();
    if ( environment.contains( "linux" ) ) {
      return false;
    }

    final String userAgent = getUserAgent();
    if ( userAgent == null ) {
      return true;
    }

    if ( environment.contains( "windows" ) ) {
      Matcher edgeMatcher = EDGE_PATTERN.matcher( userAgent );
      int edgeMinVersion = getSupportedVersion( "min.windows.browser.supported" );

      return !edgeMatcher.find() || checkUserAgent( edgeMatcher, edgeMinVersion );
    }

    return checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.supported" ) );
  }
@Test
  public void testIsUnSupportedBrowserEnvironment_ubuntu() {
    EnvironmentUtilsMock mock = new EnvironmentUtilsMock( Case.UBUNTU );
    assertTrue( mock.getMockedInstance().isUnsupportedBrowserEnvironment() );

    mock = new EnvironmentUtilsMock( Case.UBUNTU_WRONG );
    assertFalse( mock.getMockedInstance().isUnsupportedBrowserEnvironment() );
  }