void () { final ReplacePathToMacroMap map = new ReplacePathToMacroMap(); final String path = "jar://C:/idea/lib/forms_rt.jar!/"; map.put("jar://C:/id", "*SUBST*"); final String substituted = map.substitute(path, false); assertEquals(path, substituted); }