/**
  * test creation of asterisk context
  *
  */
 public function testCreateAsteriskContext()
 {
     $test = $this->_getAsteriskContext();
     $returned = $this->_json->saveAsteriskContext($test->toArray());
     $this->assertEquals($test['name'], $returned['name']);
     $this->assertEquals($test['description'], $returned['description']);
     $this->assertNotNull($returned['id']);
     // test getAsteriskContext($contextId) as well
     $returnedGet = $this->_json->getAsteriskContext($returned['id']);
     $this->assertEquals($test['name'], $returnedGet['name']);
     $this->assertEquals($test['description'], $returnedGet['description']);
 }