Utility { public static boolean validateRiakUrl(String url) { if (url.startsWith(RIAKTS_URL_PREFIX)) { String[] urlParsed = url.replace(RIAKTS_URL_PREFIX, "").split(":"); if (isInetAddress( urlParsed[0] ) && isValidPort( urlParsed[1] )) { return true; } } return false; }  static ResultSet query(RiakClient client, String sql); static Properties getRiakPropertiesFromUrl(String url); static boolean validateRiakUrl(String url); static boolean validateRiakProperties(Properties info); static long dateStringMMddyyyyHHmmssSSToEpoch(String dateString); static List<String> getBuckets(RiakClient client, String bucket);  }
@Test public void testValidateRiakUrl() { assertTrue( Utility.validateRiakUrl("riakts: }