MetricConverter { public static boolean isCountryMetric(String country) { boolean metric = true; if (StringUtils.isNotEmpty(country)) { metric = !imperialCountries.contains(country.toUpperCase()); } return metric; }  static double getEBC(double inSRM); static double getEBC(String inSRM); static double getSRM(double inEBC); static String getPlato(double gravity); static boolean isCountryMetric(String country);  }
@Test public void isCountryMetric() { assert(!MetricConverter.isCountryMetric("US")); assert(MetricConverter.isCountryMetric("UK")); assert(MetricConverter.isCountryMetric("wtf")); assert(MetricConverter.isCountryMetric("")); assert(MetricConverter.isCountryMetric(null)); }