public function register(Application $app)
 {
     $app['config.server'] = $app->share(function () use($app) {
         if ($app['debug']) {
             $config = new ConfigServer(new MongoStorage('ConfigServer', 'config', 'localhost'));
         } else {
             $config = ConfigServer::createDefault();
         }
         $config->setCache(new Cache($app['memcache']));
         return $config;
     });
 }
 public function testCreateDefault()
 {
     $this->assertInstanceOf(ConfigServer::class, ConfigServer::createDefault());
 }