void () { VirtualFile file = tempDirectory.newVirtualFile("file.txt"); checkEvents(""" Before: VFileCreateEvent->xx.created VFileDeleteEvent->file.txt After: VFileCreateEvent->xx.created VFileDeleteEvent->file.txt """, new VFileDeleteEvent(this, file), new VFileCreateEvent(this, file.getParent(), "xx.created", false, null, null, null), new VFileDeleteEvent(this, file)); }