AntennaCLIOptions extends AbstractAntennaCLIOptions { static String helpMessage() { String cr = System.lineSeparator(); return "Usage: java -jar antenna.jar [options] <pomFilePath> [<propertiesFilePath>]" + cr + cr + "Supported options:" + cr + SWITCH_HELP_SHORT + ", " + SWITCH_HELP_LONG + ": Displays this help message." + cr + SWITCH_DEBUG_SHORT + ", " + SWITCH_DEBUG_LONG + ": Sets log level to DEBUG for diagnostic purposes." + cr; } AntennaCLIOptions(String configFilePath, boolean debugLog, boolean showHelp, boolean valid);   AntennaCLIOptions(String configFilePath,
                      String propertiesFilePath,
                      boolean debugLog,
                      boolean showHelp,
                      boolean valid); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testHelpMessage() { List<String> expectedFragments = Arrays.asList("Usage: ", AntennaCLIOptions.SWITCH_DEBUG_LONG, AntennaCLIOptions.SWITCH_DEBUG_SHORT, AntennaCLIOptions.SWITCH_HELP_LONG, AntennaCLIOptions.SWITCH_HELP_SHORT, "[options]", "<pomFilePath>"); String helpMessage = AntennaCLIOptions.helpMessage(); assertThat(helpMessage).contains(expectedFragments); System.out.println(helpMessage); }