public function testCreateDefaultConstructor()
 {
     $d = new ServiceDescription('https://example.com/router');
     $a1 = new ActionDescription('action1', array(new MethodDescription('method1')));
     $d->addAction($a1);
     $this->assertEquals('https://example.com/router', $d->getUrl());
     $this->assertEquals('Ext.global', $d->getNamespace());
     $this->assertEquals('remoting', $d->getType());
     $this->assertCount(1, $d->getActions());
     $this->assertJsonStringEqualsJsonString(json_encode(array('type' => 'remoting', 'url' => 'https://example.com/router', 'namespace' => 'Ext.global', 'actions' => array('action1' => array(array('name' => 'method1', 'len' => 0))))), json_encode($d));
 }