### Question:
ThriftMetastoreAuthenticationConfig { @Config("hive.metastore.authentication.type") @ConfigDescription("Thrift metastore authentication type") public ThriftMetastoreAuthenticationConfig setAuthenticationType(ThriftMetastoreAuthenticationType authenticationType) { this.authenticationType = authenticationType; return this; }  @NotNull ThriftMetastoreAuthenticationType getAuthenticationType(); @Config("hive.metastore.authentication.type") @ConfigDescription("Thrift metastore authentication type") ThriftMetastoreAuthenticationConfig setAuthenticationType(ThriftMetastoreAuthenticationType authenticationType);  }### Answer:
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("hive.metastore.authentication.type", "KERBEROS") .build(); ThriftMetastoreAuthenticationConfig expected = new ThriftMetastoreAuthenticationConfig() .setAuthenticationType(ThriftMetastoreAuthenticationType.KERBEROS); assertFullMapping(properties, expected); }
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(ThriftMetastoreAuthenticationConfig.class) .setAuthenticationType(ThriftMetastoreAuthenticationType.NONE)); }