@Test
public void testHandleServiceEnvWithYarnConfigSecurityValueKerberos() {

  Service service = createServiceWithEmptyEnvVars();
  org.apache.hadoop.conf.Configuration yarnConfig =
      createYarnConfigWithSecurityValue("kerberos");
  EnvironmentUtilities.handleServiceEnvs(service, yarnConfig, null);
  Map<String, String> resultEnvs = service.getConfiguration().getEnv();
  assertEquals(1, resultEnvs.size());
  assertEquals("/etc/passwd:/etc/passwd:ro,/etc/group:/etc/group:ro,/etc/krb5.conf:/etc/krb5.conf:ro",
      resultEnvs.get(EnvironmentUtilities.ENV_DOCKER_MOUNTS_FOR_CONTAINER_RUNTIME));
}