### Question:
ClusterCreationEnvironmentValidator { public boolean hasFreeIpaKerberosConfig(Stack stack) { return kerberosConfigService.get(stack.getEnvironmentCrn(), stack.getName()) .map(kc -> KerberosType.FREEIPA == kc.getType()) .orElse(Boolean.FALSE); }  void validate(Stack stack, DetailedEnvironmentResponse environment, User user, boolean distroxRequest,
        ValidationResult.ValidationResultBuilder validationBuilder); void validateRdsConfigNames(Set<String> rdsConfigNames, ValidationResultBuilder resultBuilder, Long workspaceId); void validateProxyConfig(String resourceCrn, ValidationResultBuilder resultBuilder); void validateAutoTls(
            ClusterV4Request clusterRequest,
            Stack stack,
            ValidationResultBuilder resultBuilder,
            String parentEnvironmentCloudPlatform); boolean hasFreeIpaKerberosConfig(Stack stack);  }### Answer:
@Test void testAutoTlsWithFreeIpa() { Stack stack = getStack(); KerberosConfig kerberosConfig = KerberosConfigBuilder.aKerberosConfig().withType(KerberosType.ACTIVE_DIRECTORY).build(); when(kerberosConfigService.get(any(), any())).thenReturn(Optional.of(kerberosConfig)); boolean result = underTest.hasFreeIpaKerberosConfig(stack); assertFalse(result); }