source: class HelpFormatterTest {
  
      private HelpFormatter helpFormatter;
  
      @Test
      public void testHelp() throws IOException {
  
target:         String footer = "------------";
          String divider = "\n";
  
          helpFormatter.setFooter(footer);
          helpFormatter.setDivider(divider);
  
          OptionException exception = mock(OptionException.class);
          when(exception.getOption()).thenReturn(mock(Option.class));
          helpFormatter.setException(exception);
  
          Writer writer = mock(Writer.class);
          helpFormatter.help(writer);
  
          verify(helpFormatter, times(2)).line(writer, divider);
          verify(exception, times(2)).getOption();
      }
  
  }