### Question:
JmxNamingConfig { @Config("jmx.base-name") public JmxNamingConfig setDomainBase(String domainBase) { this.domainBase = domainBase; return this; }  String getDomainBase(); @Config("jmx.base-name") JmxNamingConfig setDomainBase(String domainBase);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(JmxNamingConfig.class) .setDomainBase("presto")); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("jmx.base-name", "my.stuff") .build(); JmxNamingConfig expected = new JmxNamingConfig() .setDomainBase("my.stuff"); assertFullMapping(properties, expected); }