void () { myMap.put("/root/project/module", "$MODULE_DIR$"); myMap.put("/root/project", "../$MODULE_DIR$"); myMap.put("/root", "$APPLICATION_HOME_DIR$"); assertEquals("$MODULE_DIR$", substitute("/root/project/module")); assertEquals("../$MODULE_DIR$", substitute("/root/project")); assertEquals("$APPLICATION_HOME_DIR$/appsubdir", substitute("/root/appsubdir")); assertEquals("$APPLICATION_HOME_DIR$", substitute("/root")); }