}
@Test
public void testParseConfigWithContent() throws InvalidFileFormatException, IOException {
AdvancedCodeBlockMacro macro = new AdvancedCodeBlockMacro();
Map<String, Object> context = new HashMap<String,Object>();
String[] splitted = BaseAdvancedCodeblockMacro.splitMacroBodyIntoContentAndConfig(configWithContent);
String configUnparsed = splitted[0];
String contentUnparsed = splitted[1];
List<Map<String, String>> codeblocks = macro.parseConfigWithContent(configUnparsed, contentUnparsed, "key", 1l, context, true);
assertEquals("\nmy replacable awesome text <html>", codeblocks.get(0).get(AdvancedCodeBlockMacro.VELOCITY_PLACEHOLDER_CODE).toString());
assertEquals("config 1", codeblocks.get(0).get(AdvancedCodeBlockMacro.VELOCITY_PLACEHOLDER_TITLE).toString());
assertEquals("\nmy replacable great text <html>", codeblocks.get(1).get(AdvancedCodeBlockMacro.VELOCITY_PLACEHOLDER_CODE).toString());