public function testFindById()
{
$this->objectManager->expects($this->any())->method('find')->with(null, 'id-123')->will($this->returnValue($this->document));
$this->managerRegistry->expects($this->any())->method('getManager')->will($this->returnValue($this->objectManager));
$contentRepository = new ContentRepository($this->managerRegistry);
$contentRepository->setManagerName('default');
$this->assertSame($this->document, $contentRepository->findById('id-123'));
}