void () { assertEquals("unknown:/tmp/foo", substitute("unknown:/tmp/foo")); // not substituted assertEquals("-Dprop=unknown:$MODULE_DIR$", myMap.substituteRecursively("-Dprop=unknown:/tmp/foo", true).toString()); // substituted }