HelmStatus extends HelmCommand<HelmStatus> implements CLI.WithTLS<HelmStatus> { public HelmStatus revision(int revision) { return withFlags(Argument.of("--revision", revision)); } HelmStatus(String releaseName);   HelmStatus(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmStatus revision(int revision); @Override HelmStatus newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env);  }
@Test public void shouldAddMaxOption() { HelmStatus command = Helm.status("foo"); HelmStatus copy = command.revision(19); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "status", "--revision", "19", "foo"); }