private static boolean isOS(final String expectedOsName) {
    String osName = getOsName();
    return osName != null && osName.contains(expectedOsName);
  }
Returns true if expectedOsName matches {@code System.getProperty("os.name")}.
geode-core/src/main/java/org/apache/geode/internal/lang/SystemUtils.java