protected function getApp()
{
$sessionMock = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\Session\\Session')->setMethods(array('clear'))->setConstructorArgs(array(new MockFileSessionStorage()))->getMock();
$config = new Config\ResourceManager(TEST_ROOT);
$bolt = new Application(array('resources' => $config));
$bolt['config']->set('general/database', array('driver' => 'sqlite', 'databasename' => 'test', 'username' => 'test', 'memory' => true));
$bolt['session'] = $sessionMock;
$bolt['resources']->setPath('files', __DIR__ . "/files");
$bolt->initialize();
return $bolt;
}