public function testCanBackupAndRestoreRegistrations()
{
$this->mock->registerHandler('foo', 'bar', 'callback2');
$this->mock->registerHandler('all', 'all', 'callback4', 100);
$handlers = $this->mock->getAllHandlers();
$this->mock->backup();
$this->assertEmpty($this->mock->getAllHandlers());
$this->mock->restore();
$this->assertEquals($handlers, $this->mock->getAllHandlers());
}