Utility { public static Properties getRiakPropertiesFromUrl(String url) throws SQLException { if (validateRiakUrl(url)) { String[] urlParsed = url.replace(RIAKTS_URL_PREFIX, "").split(":"); Properties riakProperties = new Properties(); riakProperties.setProperty("RiakUrl", urlParsed[0]); riakProperties.setProperty("RiakPort", urlParsed[1]); return riakProperties; } throw new SQLException(); }  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 testGetRiakProperties() throws SQLException { Properties info = Utility.getRiakPropertiesFromUrl("riakts: assertFalse( info.isEmpty() ); }