Arguments { @Nonnull public String getAgent() { return agent; }  @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 givenAArgument_whenInit_thenAgentIsExpected() { jCommander.parse(array("-a", "funky-bot-1", FIRST_RESOURCE)); assertThat(arguments.getAgent(), equalTo("funky-bot-1")); }
@Test public void givenAgentArgument_whenInit_thenAgentIsExpected() { jCommander.parse(array("--agent", "funky-bot-2", FIRST_RESOURCE)); assertThat(arguments.getAgent(), equalTo("funky-bot-2")); }