void () { final ExpandMacroToPathMap map = new ExpandMacroToPathMap(); map.addMacroExpand("MACRO", "forms_rt.jar!/"); final String expanded = map.substitute("jar://C:/idea/lib/$MACRO$", false); assertEquals("jar://C:/idea/lib/forms_rt.jar!/", expanded); }