HelmRollback extends HelmCommand<HelmRollback> implements CLI.WithTLS<HelmRollback> { public HelmRollback recreatePods() { return withFlags(Argument.of("--recreate-pods")); } HelmRollback(String release, String revision);   HelmRollback(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmRollback dryRun(); HelmRollback force(); HelmRollback noHooks(); HelmRollback recreatePods(); HelmRollback timeout(int seconds); HelmRollback waitForK8s(); HelmRollback waitForK8s(int seconds); @Override HelmRollback newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env);  }
@Test public void shouldAddRecreatePodsOption() { HelmRollback command = Helm.rollback("foo-release", "1.0"); HelmRollback copy = command.recreatePods(); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "rollback", "--recreate-pods", "foo-release", "1.0"); }