public function testIsolatedRemoveShouldThrowDocumentModifiedException()
 {
     $testData = ['test' => 'test'];
     $options = ['w' => 1];
     //ensure document
     $this->mongoCollectionMock->expects($this->atLeastOnce())->method('insert')->with($this->equalTo($testData), $this->equalTo($options))->will($this->returnValue(['ok' => true, 'n' => 0]));
     // MongoDB returns 0 on insert operation
     $this->assertEquals(1, $this->documentStore->isolatedUpsert($this->mongoCollection, $testData, $options));
     $this->mongoCollectionMock->expects($this->atLeastOnce())->method('remove')->with($this->equalTo($testData))->will($this->returnValue(['ok' => true, 'n' => 0]));
     $this->setExpectedException('\\Matryoshka\\Model\\Wrapper\\Mongo\\Exception\\DocumentModifiedException');
     $this->assertEquals(1, $this->documentStore->isolatedRemove($this->mongoCollection, $testData['_id'], $options));
 }