/**
  * test creation of snom template
  *
  */
 public function testCreateSnomTemplate()
 {
     $test = $this->_getSnomTemplate();
     $returned = $this->_json->saveSnomTemplate($test->toArray());
     $this->assertEquals($test['name'], $returned['name']);
     $this->assertEquals($test['setting_id'], $returned['setting_id']['value']);
     $this->assertEquals($test['software_id'], $returned['software_id']['value']);
     $this->assertNotNull($returned['id']);
     // test getSnomTemplate as well
     $returnedGet = $this->_json->getSnomTemplate($returned['id']);
     $this->assertEquals($test['name'], $returnedGet['name']);
     $this->assertEquals($test['setting_id'], $returnedGet['setting_id']['value']);
     $this->assertEquals($test['software_id'], $returnedGet['software_id']['value']);
 }