ViewHelper { public String sectionHeaderText(int section, int subsection, FunctionDocumentation functionDocumentation) { return String.format("%s - %s (Function %s)", sectionNumber(section, subsection), functionDocumentation.getDisplayName(),functionDocumentation.getId()); }  String sectionHeaderText(int section, int subsection, FunctionDocumentation functionDocumentation); String sectionAnchor(int section, int subsection); String sectionNumber(int section, int subsection); String href(String id); String href(ItemDocumentation itemDocumentation); String href(ItemDocumentationSupport ids); String itemAnchor(ItemDocumentation itemDocumentation); String memberText(GroupDocumentation g, GroupMember m); String summarize(BaseDocumentation doc, int length, String elideText);  }
@Test public void testSectionHeaderText() { FunctionDocumentation functionDocumentation = new FunctionDocumentation(); assertEquals("10.2 - null (Function null)", vh.sectionHeaderText(10, 2,functionDocumentation)); functionDocumentation.setId("abc"); assertEquals("10.2 - null (Function abc)", vh.sectionHeaderText(10, 2,functionDocumentation)); functionDocumentation.setDisplayName("xyz"); assertEquals("10.2 - xyz (Function abc)", vh.sectionHeaderText(10, 2,functionDocumentation)); }