### Question:
OSChecker { public static boolean atleast(String name, int majorVersion, int minorVersion) { return osName.equalsIgnoreCase(name) && (osMajorVersion >= majorVersion) && (osMinorVersion >= minorVersion); }  static boolean match(String name); static boolean match(String name, int majorVersion, int minorVersion); static boolean matchApprox(String name); static boolean atleast(String name, int majorVersion, int minorVersion); static boolean matchArch(String name); static boolean isSolaris(); static boolean isWindows(); static boolean isUnix(); static boolean isAIX(); static boolean isLinux(); static boolean isOSX(); static int getOsMajorVersion(); static int getOsMinorVersion(); static void parseVersion(String version); static boolean isHPUX(); static String OS_NAME; static String OS_VERSION; static String DOT; static String OS_ARCH; static String SUNOS; static String WINDOWS; static String AIX; static String LINUX; static String HPUX; static String OSX; }### Answer:
@Test public void testAtLeast() { parseVersion("1.2.3"); assertTrue(atleast(OS_NAME, 1, 0)); assertTrue(atleast(OS_NAME, 1, 2)); assertFalse(atleast(OS_NAME, 1, 3)); assertFalse(atleast(OS_NAME, 2, 1)); assertFalse(atleast("iOS", 1, 0)); }