public function setUp()
{
$loader = (include __DIR__ . '/../vendor/autoload.php');
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
$container = new CompositeContainer();
$builder = new ContainerBuilder();
$builder->useAnnotations(true);
$builder->wrapContainer($container);
$diContainer = $builder->build();
$container->addContainer($diContainer);
$reader = new AnnotationReader();
$routeLoader = new RouteAnnotationClassLoader($reader);
$loader = new AnnotationDirectoryLoader(new FileLocator([__DIR__ . '/app']), $routeLoader);
$routes = $loader->load(__DIR__ . '/app');
$context = new RequestContext();
$matcher = new UrlMatcher($routes, $context);
$hookReader = new HookReader($reader);
$executor = new AnnotExecutor($container, $hookReader);
$this->app = new App($matcher, $executor);
}