### Question:
MetastoreTypeConfig { @Config("hive.metastore") public MetastoreTypeConfig setMetastoreType(String metastoreType) { this.metastoreType = metastoreType; return this; }  @NotNull String getMetastoreType(); @Config("hive.metastore") MetastoreTypeConfig setMetastoreType(String metastoreType);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(MetastoreTypeConfig.class) .setMetastoreType("thrift")); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("hive.metastore", "foo") .build(); MetastoreTypeConfig expected = new MetastoreTypeConfig() .setMetastoreType("foo"); assertFullMapping(properties, expected); }