### Question:
FileBackupConfig { @Config("backup.directory") @ConfigDescription("Base directory to use for the backup copy of shard data") public FileBackupConfig setBackupDirectory(File backupDirectory) { this.backupDirectory = backupDirectory; return this; }  @NotNull File getBackupDirectory(); @Config("backup.directory") @ConfigDescription("Base directory to use for the backup copy of shard data") FileBackupConfig setBackupDirectory(File backupDirectory);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(recordDefaults(FileBackupConfig.class) .setBackupDirectory(null)); }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("backup.directory", "/backup") .build(); FileBackupConfig expected = new FileBackupConfig() .setBackupDirectory(new File("/backup")); assertFullMapping(properties, expected); }