HelpFormatter { protected void footer(Writer writer) throws IOException { if (getFooter() != null) { line(writer, getFooter()); line(writer, getDivider()); } }  void format(OutputStream output); void format(Writer writer); Set<HelpHint> getUsageOutputHints(); void setUsageOutputHints(Set<HelpHint> usageOutputHints); Set<HelpHint> getHelpOutputHints(); void setHelpOutputHints(Set<HelpHint> helpOutputHints); Set<HelpHint> getOptionOutputHints(); void setOptionOutputHints(Set<HelpHint> optionOutputHints); String getExecutable(); void setExecutable(String executable); String getHeader(); void setHeader(String header); String getDivider(); void setDivider(String divider); String getGutter(); void setGutter(String gutter); String getFooter(); void setFooter(String footer); Option getOption(); void setOption(Option option); Comparator getComparator(); void setComparator(Comparator comparator); OptionException getException(); void setException(OptionException exception); final static String GUTTER; static Set<HelpHint> USAGE_OUTPUT_HINTS; static Set<HelpHint> HELP_OUTPUT_HINTS; static Set<HelpHint> OPTION_OUTPUT_HINTS; }
@Test public void testFooter() throws IOException { String footer = "------------"; helpFormatter.setFooter(footer); Writer writer = mock(Writer.class); helpFormatter.footer(writer); verify(helpFormatter).line(writer, footer); }