public function testApplicationRun()
 {
     MockApplication::reset();
     $mockApplication = new MockApplication();
     $mockAppClass = get_class($mockApplication);
     $configDir = "configDir";
     $mockApplication->setReturn("offsetGet", $this->routeLoader);
     $this->routeLoader->shouldReceive("parseRoutes")->with("/^{$configDir}/")->once();
     $controller = new FrontController($this->builder, $configDir, $mockAppClass);
     $controller->runApplication();
     $this->assertEquals("app", $mockApplication->getCalledResponse("offsetSet")[0]);
     $this->assertEquals(["routeLoader"], $mockApplication->getCalledResponse("offsetGet"));
     $this->assertEquals([], $mockApplication->getCalledResponse("run"));
 }