protected function assertContentHandlerExpectations($callNo, $persistenceCalled, $contentId, $contentInfo)
 {
     $this->getPersistenceMock()->expects($this->at($callNo + ($persistenceCalled ? 1 : 0)))->method("contentHandler")->will($this->returnValue($this->contentHandlerMock));
     $this->contentHandlerMock->expects($this->at($callNo))->method("loadContentInfo")->with($contentId)->will($this->returnValue($contentInfo));
 }