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