### Question:
ExampleConfig { @Config("metadata-uri") public ExampleConfig setMetadata(URI metadata) { this.metadata = metadata; return this; }  @NotNull URI getMetadata(); @Config("metadata-uri") ExampleConfig setMetadata(URI metadata);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(ExampleConfig.class) .setMetadata(null)); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("metadata-uri", "file: .build(); ExampleConfig expected = new ExampleConfig() .setMetadata(URI.create("file: assertFullMapping(properties, expected); }