PropertitesFactory { public String getPropertyByPathAndKey(String path,String key){ Properties p = getProperties(path); return p.getProperty(key); } private  PropertitesFactory(); static PropertitesFactory getInstance(); String getPropertyByPathAndKey(String path,String key); static PropertitesFactory instance; }
@Test public void testGetPropertyByPathAndKey() { logger.info( PropertitesFactory.getInstance().getPropertyByPathAndKey(path, "HBase.ServerPort") ); }