public function testToMetadata()
 {
     Maestrano::configure($this->config);
     $expected = array('environment' => $this->config['environment'], 'app' => array('host' => $this->config['app']['host']), 'api' => array('id' => $this->config['api']['id'], 'version' => Maestrano::VERSION, 'verify_ssl_certs' => false, 'lang' => 'php', 'lang_version' => phpversion() . " " . php_uname(), 'host' => Maestrano::$EVT_CONFIG[$this->config['environment']]['api.host'], 'base' => Maestrano::$EVT_CONFIG[$this->config['environment']]['api.base']), 'sso' => array('enabled' => true, 'slo_enabled' => true, 'init_path' => $this->config['sso']['init_path'], 'consume_path' => $this->config['sso']['consume_path'], 'creation_mode' => 'real', 'idm' => $this->config['sso']['idm'], 'idp' => $this->config['sso']['idp'], 'name_id_format' => Maestrano::$EVT_CONFIG[$this->config['environment']]['sso.name_id_format'], 'x509_fingerprint' => Maestrano::$EVT_CONFIG[$this->config['environment']]['sso.x509_fingerprint'], 'x509_certificate' => Maestrano::$EVT_CONFIG[$this->config['environment']]['sso.x509_certificate']), 'connec' => array('enabled' => $this->config['connec']['enabled'], 'host' => $this->config['connec']['host'], 'base_path' => $this->config['connec']['base_path'], 'v2_path' => $this->config['connec']['v2_path'], 'reports_path' => $this->config['connec']['reports_path']), 'webhook' => array('account' => array('groups_path' => $this->config['webhook']['account']['groups_path'], 'group_users_path' => $this->config['webhook']['account']['group_users_path']), 'connec' => array('initialization_path' => $this->config['webhook']['connec']['initialization_path'], 'notifications_path' => $this->config['webhook']['connec']['notifications_path'], 'subscriptions' => $this->config['webhook']['connec']['subscriptions'])));
     $this->assertEquals(json_encode($expected), Maestrano::toMetadata());
 }