### Question:
FixedUserWebUiConfig { @Config("web-ui.user") public FixedUserWebUiConfig setUsername(String username) { this.username = username; return this; }  @NotNull String getUsername(); @Config("web-ui.user") FixedUserWebUiConfig setUsername(String username);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(FixedUserWebUiConfig.class) .setUsername(null)); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("web-ui.user", "some-user") .build(); FixedUserWebUiConfig expected = new FixedUserWebUiConfig() .setUsername("some-user"); assertFullMapping(properties, expected); }