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