HelmInit extends HelmCommand<HelmInit> { public HelmInit tillerTLSKey(String key) { return withFlags(Arguments.of("--tiller-tls-key", key)); } HelmInit();   HelmInit(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); @Override HelmInit newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmInit canaryImage(); HelmInit clientOnly(); HelmInit dryRun(); HelmInit localRepoURL(String url); HelmInit netHost(); HelmInit serviceAccount(String name); HelmInit skipRefresh(); HelmInit stableRepoURL(String url); HelmInit tillerImage(String image); HelmInit tillerTLS(); HelmInit tillerTLSCert(String cert); HelmInit tillerTLSKey(String key); HelmInit tillerTLSVerify(); HelmInit tlsCACert(String cert); HelmInit upgrade();  }
@Test public void shouldAddTillerTlsKeyOption() { HelmInit command = Helm.init(); HelmInit copy = command.tillerTLSKey("bar"); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "init", "--tiller-tls-key", "bar"); }