@Test public void testConfiguration() throws Exception {

  Configuration conf = new Configuration();
  conf.set("hadoop.kms.authentication.type", "simple");
  Properties prop = new KMSAuthenticationFilter().getKMSConfiguration(conf);
  assertEquals(prop.getProperty(KMSAuthenticationFilter.AUTH_TYPE),
      PseudoDelegationTokenAuthenticationHandler.class.getName());
  assertEquals(
      prop.getProperty(DelegationTokenAuthenticationHandler.TOKEN_KIND),
      KMSDelegationToken.TOKEN_KIND_STR);
}