Utility { public static boolean validateRiakProperties(Properties info) { if (info.isEmpty() != true && info != null) { if (isInetAddress( info.getProperty("RiakUrl") ) && isValidPort( info.getProperty("RiakPort") )) { 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 testValidateRiakPropertiesl() { Properties info = new Properties(); info.setProperty("RiakUrl", "127.0.0.1"); info.setProperty("RiakPort", "8087"); assertTrue( Utility.validateRiakProperties(info) ); }