/**
  * test search of asterisk voicemail
  *
  */
 public function testSearchAsteriskVoicemail()
 {
     // create
     $asteriskVoicemail = $this->_getAsteriskVoicemail();
     $asteriskVoicemailData = $this->_json->saveAsteriskVoicemail($asteriskVoicemail->toArray());
     // search & check
     $search = $this->_json->searchAsteriskVoicemails($this->_getAsteriskVoicemailFilter($asteriskVoicemail->context), $this->_getPaging());
     $this->assertEquals($asteriskVoicemail->context, $search['results'][0]['context']);
     $this->assertEquals(1, $search['totalcount']);
     // cleanup
     $this->_json->deleteAsteriskVoicemails($asteriskVoicemailData['id']);
     /***********************************************************************************/
 }