@Test
public void should_trigger_a_created_event_when_a_file_is_created() throws Exception {

    PathListenerStub listener = new PathListenerStub();
    watcher.watch(folder.toPath(), listener);
    Path file = Files.createFile(subDirectory.resolve("file"));
    await().until(changedFilesContainsExactly(listener, file));
}