### Question:
DatabaseConfig { @Config("metadata.db.type") @ConfigDescription("Metadata database type (supported types: h2, mysql)") public DatabaseConfig setDatabaseType(String databaseType) { this.databaseType = databaseType; return this; }  @NotNull String getDatabaseType(); @Config("metadata.db.type") @ConfigDescription("Metadata database type (supported types: h2, mysql)") DatabaseConfig setDatabaseType(String databaseType);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(DatabaseConfig.class) .setDatabaseType(null)); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = ImmutableMap.<String, String>builder() .put("metadata.db.type", "h2") .build(); DatabaseConfig expected = new DatabaseConfig() .setDatabaseType("h2"); assertFullMapping(properties, expected); }