@Test
@SuppressWarnings("CucumberJavaStepDefClassIsPublic")
public void shouldInjectEnvVarsDefaultValues() {

    InjectEnvVarsHook hook = new InjectEnvVarsHook() {
        @Override
        protected Optional<String> getNamespaceSetting() {
            return Optional.of("foo");
        }
        @Override
        protected Optional<String> getClusterWildcardSetting() {
            return Optional.empty();
        }
    };
    TestContext context = TestContextFactory.newInstance().getObject();
    TestCaseRunner runner = new DefaultTestCaseRunner(context);
    CitrusAnnotations.injectTestRunner(hook, runner);
    hook.injectEnvVars(null);
    Assertions.assertThat(context.getVariable(YaksVariableNames.NAMESPACE.value())).isEqualTo("foo");
    Assertions.assertThat(context.getVariable(YaksVariableNames.CLUSTER_WILDCARD_DOMAIN.value())).isEqualTo("foo." + YaksSettings.DEFAULT_DOMAIN_SUFFIX);
}