HelmList extends HelmCommand<HelmList> implements CLI.WithTLS<HelmList> { public HelmList quiet() { return withFlags(Argument.of("--short")); } HelmList();   HelmList(String filter);   HelmList(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmList all(); HelmList sortByDate(); HelmList deleted(); HelmList deleting(); HelmList deployed(); HelmList failed(); HelmList max(int max); HelmList namespace(String namespace); HelmList offset(String release); HelmList pending(); HelmList reverse(); HelmList quiet(); @Override HelmList newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env);  }
@Test public void shouldAddQuietOption() { HelmList command = Helm.list(); HelmList copy = command.quiet(); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "list", "--short"); }