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