### Question:
EnvironmentUtils { public synchronized boolean isUnsupportedBrowserEnvironment() { if ( getEnvironmentName().contains( "linux" ) ) { return false; } final String userAgent = getUserAgent(); if ( userAgent == null ) { return true; } return checkUserAgent( MSIE_PATTERN.matcher( userAgent ), getSupportedVersion( "min.windows.browser.supported" ) ) || checkUserAgent( SAFARI_PATTERN.matcher( userAgent ), getSupportedVersion( "min.mac.browser.supported" ) ); }  static synchronized EnvironmentUtils getInstance(); synchronized boolean isUnsupportedBrowserEnvironment(); synchronized boolean isWebkitUnavailable(); boolean isBrowserEnvironmentCheckDisabled(); synchronized String getBrowserName(); static final String UBUNTU_BROWSER; static final String MAC_BROWSER; static final String WINDOWS_BROWSER; }### Answer:
@Test public void isUnSupportedBrowserEnvironmentTest() { EnvironmentUtilsMock mock = new EnvironmentUtilsMock( Case.UBUNTU_16 ); assertFalse( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.MAC_OS_X ); assertFalse( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.WINDOWS ); assertFalse( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.MACOS_X_WRONG ); assertTrue( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); mock = new EnvironmentUtilsMock( Case.WINDOWS_WRONG ); assertTrue( mock.getMockedInstance().isUnsupportedBrowserEnvironment() ); }