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