### Question:
FileResourceGroupConfig { @Config("resource-groups.config-file") public FileResourceGroupConfig setConfigFile(String configFile) { this.configFile = configFile; return this; }  @NotNull @FileExists String getConfigFile(); @Config("resource-groups.config-file") FileResourceGroupConfig setConfigFile(String configFile);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(FileResourceGroupConfig.class) .setConfigFile(null)); }
@Test public void testExplicitPropertyMappings() throws IOException { Path resourceGroupConfigFile = Files.createTempFile(null, null); Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("resource-groups.config-file", resourceGroupConfigFile.toString()) .build(); FileResourceGroupConfig expected = new FileResourceGroupConfig() .setConfigFile(resourceGroupConfigFile.toString()); assertFullMapping(properties, expected); }