public function testHandlerForEventBookCheckedOut()
 {
     $bookId = Uuid::createNew();
     $storage = $this->getMockBuilder(Storage::class)->disableOriginalConstructor()->getMock();
     $storage->expects(self::once())->method('upsert')->with($bookId, self::anything());
     $storage->expects(self::once())->method('find')->with($bookId)->will(self::returnValue(new Book($bookId, new Authors(), 'foo', 'bar', true, -1)));
     $service = new BookService($storage);
     $service->onBookCheckedOut(new BookCheckedOut($bookId, Uuid::createNew()));
 }