private function newLocator() {
$locator = $this
->getMock('Doctrine\\Common\\Persistence\\Mapping\\Driver\\FileLocator');
$locator
->expects($this
->any())
->method('getFileExtension')
->will($this
->returnValue('.yml'));
$locator
->expects($this
->any())
->method('getPaths')
->will($this
->returnValue(array(
__DIR__ . "/_files",
)));
return $locator;
}