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