@Test
public void testFormat() throws IOException {

    Option option = mock(Option.class);
    helpFormatter.setOption(option);
    Writer writer = mock(Writer.class);
    helpFormatter.format(writer);
    verify(helpFormatter).header(writer);
    verify(helpFormatter).exception(writer);
    verify(helpFormatter).usage(writer);
    verify(helpFormatter).help(writer);
    verify(helpFormatter).footer(writer);
}