ServiceSelectorConfig { @Config("pool") public ServiceSelectorConfig setPool(String pool) { this.pool = pool; return this; }  String getPool(); @Config("pool") ServiceSelectorConfig setPool(String pool); static final String DEFAULT_POOL; }
@Test public void testDefaults() { ConfigAssertions.assertRecordedDefaults(ConfigAssertions.recordDefaults(ServiceSelectorConfig.class) .setPool(null)); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("pool", "test-pool") .build(); ServiceSelectorConfig expected = new ServiceSelectorConfig() .setPool("test-pool"); ConfigAssertions.assertFullMapping(properties, expected); }