### Question:
EventListenerConfig { @Config("event-listener.config-files") public EventListenerConfig setEventListenerFiles(String eventListenerFiles) { this.eventListenerFiles = SPLITTER.splitToList(eventListenerFiles).stream() .map(File::new) .collect(toImmutableList()); return this; }  @NotNull List<@FileExists File> getEventListenerFiles(); @Config("event-listener.config-files") EventListenerConfig setEventListenerFiles(String eventListenerFiles); EventListenerConfig setEventListenerFiles(List<File> eventListenerFiles);  }### Answer:
@Test public void testDefaults() { assertRecordedDefaults(ConfigAssertions.recordDefaults(EventListenerConfig.class) .setEventListenerFiles("")); }
@Test public void testExplicitPropertyMappings() throws IOException { Path config1 = Files.createTempFile(null, null); Path config2 = Files.createTempFile(null, null); Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("event-listener.config-files", config1.toString() + "," + config2.toString()) .build(); EventListenerConfig expected = new EventListenerConfig() .setEventListenerFiles(ImmutableList.of(config1.toFile(), config2.toFile())); assertFullMapping(properties, expected); }