public function testOnRouteWithWrongRoute()
{
$route = Mockery::mock('Zend\\Mvc\\Router\\Http\\RouteMatch');
$route->shouldReceive('getMatchedRouteName')->once()->andReturn('admin');
$events = Mockery::mock('Zend\\EventManager\\EventInterface');
$events->shouldReceive('getRouteMatch')->once()->andReturn($route);
$this->assertNull($this->object->onRoute($events));
}