@Test
public void should_send_events() {

	TestFileWatchEventCoalescor watchEventCoalescor = new TestFileWatchEventCoalescor();
	watchEventCoalescor.post("tmp/foo", StandardWatchEventKinds.ENTRY_CREATE);
	watchEventCoalescor.post("tmp/bar", StandardWatchEventKinds.ENTRY_DELETE);
	watchEventCoalescor.post("tmp/test", StandardWatchEventKinds.ENTRY_MODIFY);
	watchEventCoalescor.post("tmp/another_file.txt", StandardWatchEventKinds.ENTRY_CREATE);
	assertThat(watchEventCoalescor.scheduledEvents).extracting("reference").extracting("path")
			.containsOnly(
					Paths.get("tmp/foo"),
					Paths.get("tmp/bar"),
					Paths.get("tmp/test"),
					Paths.get("tmp/another_file.txt")
			);
}