Arguments { @Nonnegative public int getMaxRedirectHops() { return maxRedirectHops; }  @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 givenMaxRedirectHopsArgument_whenInit_thenMaxRedirectHopsIsExpected() { jCommander.parse(array("--maxRedirectHops", "123", FIRST_RESOURCE)); assertThat(arguments.getMaxRedirectHops(), equalTo(123)); }
@Test public void givenRArgument_whenInit_thenMaxRedirectHopsIsExpected() { jCommander.parse(array("-r", "456", FIRST_RESOURCE)); assertThat(arguments.getMaxRedirectHops(), equalTo(456)); }
@Test public void givenZeroRedirectHopsArgument_whenInit_thenMaxRedirectHopsIsExpected() { jCommander.parse(array("--maxRedirectHops", "0", FIRST_RESOURCE)); assertThat(arguments.getMaxRedirectHops(), equalTo(0)); }