Arguments { @Nonnegative public int getReadTimeoutMillis() { return readTimeoutMillis; }  @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 givenReadTimeoutMilli_whenInit_thenReadTimeoutMilliIsExpected() { jCommander.parse(array("--readTimeout", "123", FIRST_RESOURCE)); assertThat(arguments.getReadTimeoutMillis(), equalTo(123)); }
@Test public void givenTArgument_whenInit_thenReadTimeoutMillisIsExpected() { jCommander.parse(array("-t", "456", FIRST_RESOURCE)); assertThat(arguments.getReadTimeoutMillis(), equalTo(456)); }
@Test public void givenZeroReadTimeoutMillis_whenInit_thenReadTimeoutMillisIsExpected() { jCommander.parse(array("--readTimeout", "0", FIRST_RESOURCE)); assertThat(arguments.getReadTimeoutMillis(), equalTo(0)); }