### Question:
FilePath { public static String parse (String path) { path = path.replace("{user.home}",System.getProperty("user.home") + "/"); path = path.replace("{user.dir}", System.getProperty("user.dir") + "/"); path = path.replace("{user.name}", System.getProperty("user.name") + "/"); path = path.replace("{app.data}", PlatformUtils.getAppDataDir()); path = path.replace("{java.io.tmpdir}", System.getProperty("java.io.tmpdir")); path = path.replace("{data.dir}", getDataDir()); path = path.replace("{temp.dir}", getTempDir()); path = path.replace("{file.seperator}", System.getProperty("file.separator")); path = path.replace("\\", "/"); path = path.replace("/./", "/"); return path; } protected  FilePath(); static String getDataDir(); static void setDataDir(String dataDir); static String getConfigDirs(); static void setConfigDirs(String configDirs); static String getTempDir(); static void setTempDir(String tempDir); static String parse(String path);  }### Answer:
@Test public void testParse () { assertEquals("test", FilePath.parse("test")); assertEquals("C:/User/test/my-app", FilePath.parse("C:\\User\\test\\my-app")); assertNotNull(FilePath.parse("{user.home}test")); assertEquals(true, FilePath.parse("{user.home}test").endsWith("/test")); }