Why not delete this class and simply use:

````
$extension = $this->getMockBuilder('Sonata\AdminBundle\Admin\AdminExtensionInterface')
    ->disableOriginalConstructor()->getMock();
````

(or just `$this->getMock` if that class has no constructor)?