### Question:
Version { static boolean check(final String version, String ... thresholdVersions) { if (thresholdVersions == null) { return true; } boolean supported = false; String [] versionComponents = getVersionComponents(version); boolean excessiveMajor = false; boolean excessiveMinor = false; for (String thresholdVersion: thresholdVersions) { String[] thresholdVersionComponents = getVersionComponents(thresholdVersion); int serverMajor = Integer.parseInt(versionComponents[MAJOR]); int thresholdMajor = Integer.parseInt(thresholdVersionComponents[MAJOR]); if (serverMajor > thresholdMajor) { excessiveMajor = true; continue; } excessiveMajor = false; if (serverMajor < thresholdMajor) { continue; } int serverMinor = Integer.parseInt(versionComponents[MINOR]); int thresholdMinor = Integer.parseInt(thresholdVersionComponents[MINOR]); if (serverMinor > thresholdMinor) { excessiveMinor = true; continue; } excessiveMinor = false; if (serverMinor < thresholdMinor) { continue; } if (Integer.parseInt(versionComponents[PATCH]) >= Integer.parseInt(thresholdVersionComponents[PATCH])) { supported = true; } break; } return supported || excessiveMajor || excessiveMinor; } private  Version();   }### Answer:
@Test public void testThreshold() { assertFalse(Version.check("2.0.2", "10.0.0")); }
@Test public void testCheckVersion202() { assertFalse(Version.check("2.0.2", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testCheckVersion210() { assertFalse(Version.check("2.1.0", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testCheckVersionSpecial210() { assertFalse(Version.check("2.1.0-patchedForHBCK2", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testCheckVersion203() { assertTrue(Version.check("2.0.3", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testCheckVersion211() { assertTrue(Version.check("2.1.1", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testExcessiveMajor() { assertTrue(Version.check("5.0.1", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testExcessiveMinor() { assertTrue(Version.check("2.10.1", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testInferiorMinor() { assertFalse(Version.check("1.0.0", HBCK2.MINIMUM_HBCK2_VERSION)); }
@Test public void testABunch() { assertTrue(Version.check("2.1.1-patchedForHBCK2", HBCK2.MINIMUM_HBCK2_VERSION)); assertTrue(Version.check("3.0.1", HBCK2.MINIMUM_HBCK2_VERSION)); assertTrue(Version.check("4.0.0", HBCK2.MINIMUM_HBCK2_VERSION)); }