@Test(timeout = 10000)
public void testAwaitConcreteChange() throws Exception {

    scheduleFileChange();
    resourcesWatcher.await(temporaryFile);
    assertThat(testHandler.getChangesCount(), equalTo(1));
    Thread.sleep(1500);
    assertThat(testHandler.getChangesCount(), equalTo(1)); //Event should occur only once
}