protected function getKernelMockForIsClassInActiveBundleTest() {
$bundle = new FooBarBundle();
$kernel = $this
->getMockBuilder('Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\KernelForTest')
->disableOriginalConstructor()
->setMethods(array(
'getBundles',
))
->getMock();
$kernel
->expects($this
->once())
->method('getBundles')
->will($this
->returnValue(array(
$bundle,
)));
return $kernel;
}