HelmLint extends HelmCommand<HelmLint> { public HelmLint strict() { return withArguments(Arguments.of("--strict")); } HelmLint(String name);   HelmLint(File chart);   HelmLint(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); @Override HelmLint newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmLint strict();  }
@Test public void shouldAddDryRunOption() { HelmLint command = Helm.lint("foo"); HelmLint copy = command.strict(); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "lint", "foo", "--strict"); }