### Question:
ConfigFileReloader { public boolean tryLoad() throws InterruptedException { File file = new File(this.configFile); if (!file.exists()) { delay = true; consumer.accept(this.configFile); return false; } long currentTimestamp = file.lastModified(); if (lastTimestamp == currentTimestamp) { return false; } if (delay) { delay = false; return false; } try { consumer.accept(this.configFile); lastTimestamp = currentTimestamp; return true; } finally { delay = true; } } ConfigFileReloader(String configFile, Consumer<String> consumer); boolean tryLoad();  }### Answer:
@Test public void testLoad4FirstTime() throws InterruptedException { ConfigFileReloader reloader = new ConfigFileReloader("/etc/passwd", i -> loadConfig(i)); boolean modified = reloader.tryLoad(); Assert.assertEquals(modified, true); }