Utils { public static boolean isWindows() { return System.getProperty("os.name").toLowerCase().indexOf("win") > 0; }  static InputStream getInputStream(final String resource); static String getFilesFolder(); static File getBaseImagesDirectory(); static File getImagesSubdirectory(final String subdirectoryName); static String convertWindowsPath(String path); static boolean isWindows(); static void logSystemProperties();  }
@Test void shouldGetIsWindows() { assertEquals( System.getProperty("os.name").contains("win"), Utils.isWindows() ); }