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