@Test
public void test() throws IOException {

    boolean hasMoreEvents;
    File f = testFilePath.toFile();
    f.createNewFile();
    hasMoreEvents = fileWatcher.processEvents();
    Assert.assertEquals(true, hasMoreEvents);
    new VerificationsInOrder() {{
        fileEventHandler.created(withEqual(testFilePath));
        times = 1;
    }};
    f.setLastModified(System.currentTimeMillis());
    hasMoreEvents = fileWatcher.processEvents();
    Assert.assertEquals(true, hasMoreEvents);
    new VerificationsInOrder() {{
        fileEventHandler.modified(withEqual(testFilePath));
        times = 1;
    }};
    f.delete();
    hasMoreEvents = fileWatcher.processEvents();
    Assert.assertEquals(true, hasMoreEvents);
    new VerificationsInOrder() {{
        fileEventHandler.deleted(withEqual(testFilePath));
        times = 1;
    }};
}