public function testUnlockHandler()
 {
     $gateway = $this->getTableGateway();
     $handler = new QueueSubscriber($gateway);
     $now = new DateTime('1-11-2013 13:30:00');
     $timeout = new DateTime('1-11-2013 15:00:00');
     $handle = '550e8400-e29b-41d4-a716-446655440000';
     $limit = 10;
     $event = new QueueLockEvent($handle, $timeout, $limit, $now);
     $handler->onUnlock($event);
     $resulting_table = $this->getConnection()->createQueryTable("later_job_queue", "SELECT * FROM later_job_queue ORDER BY dte_add ASC");
     $expected_table = $this->createXmlDataSet(__DIR__ . DIRECTORY_SEPARATOR . 'Fixture' . DIRECTORY_SEPARATOR . "unlock_handler_result.xml")->getTable("later_job_queue");
     $this->assertTablesEqual($expected_table, $resulting_table);
 }