void () { assertEquals("$MODULE_DIR$/bar", substitute("/tmp/foo/bar")); assertEquals("jar:$MODULE_DIR$/bar", substitute("jar:/tmp/foo/bar")); assertEquals("jar:/$MODULE_DIR$/bar", substitute("jar://tmp/foo/bar")); assertEquals("jar://$MODULE_DIR$/bar", substitute("jar:///tmp/foo/bar")); assertEquals("file:$MODULE_DIR$/bar", substitute("file:/tmp/foo/bar")); assertEquals("file:/$MODULE_DIR$/bar", substitute("file://tmp/foo/bar")); assertEquals("file://$MODULE_DIR$/bar", substitute("file:///tmp/foo/bar")); }