$this->assertEquals('Iain M. Banks',$newBook->author);
$this->assertEquals('redBook',$newBook->id);
//::set - an existing document as parameter
$previousId=$this->redBook->id;
$this->collection->set($this->redBook);
$this->assertEquals(
$previousId,
$this->redBook->id,
"The document ID has been modified during a set operation on an already added dcoument. It should stay the same. Old id: $previousId. New id: ".$this->redBook->id