HelmDelete extends HelmCommand<HelmDelete> implements CLI.WithTLS<HelmDelete> { public HelmDelete noHooks() { return withFlags(Argument.of("--no-hooks")); } HelmDelete(String name);   HelmDelete(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmDelete dryRun(); HelmDelete noHooks(); HelmDelete purge(); HelmDelete timeout(int seconds); @Override HelmDelete newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env);  }
@Test public void shouldAddNoHooksOption() { HelmDelete command = Helm.delete("foo"); HelmDelete copy = command.noHooks(); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "delete", "--no-hooks", "foo"); }