This should be a mock:

```php
$resolver = $this->getMock('AssetManager\Service\MimeResolver');

$resolver->expects($this->any())->method('getMimeType')->with('http://foo.bar/')->will($this->returnValue('text/foo'));
```