protected function createMockGuesser($path, $mimeType) {
$guesser = $this
->getMock('Symfony\\Component\\HttpFoundation\\File\\MimeType\\MimeTypeGuesserInterface');
$guesser
->expects($this
->once())
->method('guess')
->with($this
->equalTo($path))
->will($this
->returnValue($mimeType));
return $guesser;
}