ReportTagConfig { @Config("reporting.tag") @LegacyConfig("report.tag") public ReportTagConfig setTags(Map<String, String> tags) { this.tags = tags; return this; }  Map<String, String> getTags(); @Config("reporting.tag") @LegacyConfig("report.tag") ReportTagConfig setTags(Map<String, String> tags);  }
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(ReportTagConfig.class) .setTags(ImmutableMap.of())); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("reporting.tag.foo", "bar") .build(); ReportTagConfig expected = new ReportTagConfig() .setTags(ImmutableMap.of("foo", "bar")); assertFullMapping(properties, expected); }