ConfigUtils { public static String getConfigFilePath() { String configfile = System.getProperty("configFilePath"); if (Strings.isNullOrEmpty(configfile)) { configfile = "config.properties"; } return configfile; }  static String getConfigFilePath();  }
@Test public void testGetConfigFilePath() { String mockedPath = "customConfigFilePath.properties"; System.setProperty("configFilePath", mockedPath); assertEquals(mockedPath, ConfigUtils.getConfigFilePath()); }
@Test public void testGetConfigFilePath_default() { String defaultPath = "config.properties"; assertEquals(defaultPath, ConfigUtils.getConfigFilePath()); }