PropertyUtil { public static void setTargetUrl(String targetUrl) throws ConfigurationException { PropertiesConfiguration config = new PropertiesConfiguration(adminPropertyFileName); config.setProperty("targetUrl", targetUrl); config.save(); }  static void setTargetUrl(String targetUrl); static String getTargetUrl(); static void setDfsName(String dfsName); static String getDfsName(); static String adminPropertyFileName; }
@Test public void testSetTargetUrl() throws ConfigurationException { PropertyUtil.setTargetUrl("http: String url = PropertyUtil.getTargetUrl(); Assert.assertNotNull(url); }