### Question:
HttpBackupConfig { @Config("backup.http.uri") @ConfigDescription("Backup service base URI") public HttpBackupConfig setUri(URI uri) { this.uri = uri; return this; }  @NotNull URI getUri(); @Config("backup.http.uri") @ConfigDescription("Backup service base URI") HttpBackupConfig setUri(URI uri);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(HttpBackupConfig.class) .setUri(null)); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("backup.http.uri", "http: .build(); HttpBackupConfig expected = new HttpBackupConfig() .setUri(URI.create("http: assertFullMapping(properties, expected); }