VersionUtils { public static boolean isRange(String version) { return matches("^[\\[(].*[])]$", version); }  static Boolean isVersionValid(String version); static Boolean isVersionGreaterOrEquals(String version1, String version2); static String completeIncremental(String version); static String getBaseVersion(String version); static String getMajor(String version); static boolean isRange(String version);  }
@Test public void isRangeTest() { Map<String, Boolean> testInput = isRangeTestInput(); for (String version : testInput.keySet()) { Boolean expectedResult = testInput.get(version); assertThat("Expected result is not the expected", isRange(version), equalTo(expectedResult)); } }