Arguments { public boolean isHelpRequested() { return helpRequested; }  @Nonnegative int getMaxFileSizeBytes(); @Nonnegative int getMaxRedirectHops(); @Nonnull Charset getDefaultCharset(); @Nonnull List<URI> getResources(); @Nonnull String getAgent(); boolean isHelpRequested(); @Nonnegative int getReadTimeoutMillis(); @Nonnull RobotsConfig buildRobotsConfig();  }
@Test public void givenHelpArgument_whenInit_thenHelpIsTrue() { jCommander.parse(array("--help")); assertThat(arguments.isHelpRequested(), is(true)); }
@Test public void givenHArgument_whenInit_thenHelpIsTrue() { jCommander.parse(array("-h")); assertThat(arguments.isHelpRequested(), is(true)); }