public function testCancelOperation_BeforeDelete()
{
$document = $this->collection->delete()->createDocument(array('field' => 'value'))->save()->onBeforeDelete(function (\Sokil\Mongo\Event $event, $eventName, $dispatcher) {
$event->cancel();
})->delete();
$this->assertEquals(1, $this->collection->count());
}