HtmlSerializerContext { public MacroInvocation addMacroInvocation(String macroName, String params) { MacroInvocation invocation = new MacroInvocation(macroName, params); macroInvocations.add(invocation); return invocation; } HtmlSerializerContext(String projectName, String branchName, String pagePath,
			MarkdownProcessor markdownProcessor, Authentication authentication, Locale locale, IPageStore pageStore,
			SystemSettingsStore systemSettingsStore, String contextPath); String getAttachmentUri(String name); String getPageUri(String path); String getUrl(String uri); String markdownToHtml(String markdown); List<Header> getHeaders(); MacroInvocation addMacroInvocation(String macroName, String params);  }
@Test public void addAndGetMacroInvocations() { MacroInvocation invocation = htmlSerializerContext.addMacroInvocation("foo", "params"); assertEquals("foo", invocation.getMacroName()); assertEquals("params", invocation.getParameters()); List<MacroInvocation> invocations = htmlSerializerContext.getMacroInvocations(); assertEquals(1, invocations.size()); invocation = invocations.get(0); assertEquals("foo", invocation.getMacroName()); assertEquals("params", invocation.getParameters()); }