### Question:
WebUiConfig { @Config("web-ui.enabled") public WebUiConfig setEnabled(boolean enabled) { this.enabled = enabled; return this; }  boolean isEnabled(); @Config("web-ui.enabled") WebUiConfig setEnabled(boolean enabled);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(WebUiConfig.class) .setEnabled(true)); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("web-ui.enabled", "false") .build(); WebUiConfig expected = new WebUiConfig() .setEnabled(false); assertFullMapping(properties, expected); }