/**
  * test creation of asterisk voice mail
  *
  */
 public function testCreateAsteriskVoicemail()
 {
     $test = $this->_getAsteriskVoicemail();
     $returned = $this->_json->saveAsteriskVoicemail($test->toArray());
     $this->assertEquals($test['context'], $returned['context']);
     $this->assertEquals($test['fullname'], $returned['fullname']);
     $this->assertNotNull($returned['id']);
     // test getAsteriskVoicemail as well
     $returnedGet = $this->_json->getAsteriskVoicemail($returned['id']);
     $this->assertEquals($test['context'], $returnedGet['context']);
     $this->assertEquals($test['fullname'], $returnedGet['fullname']);
 }