public function testProcessRecordOverlays(array $input, array $expected)
{
$instance = $this->getMock($this->createInstanceClassName(), array('getWorkspaceVersionOfRecordOrRecordItself'));
$instance->expects($this->any())->method('getWorkspaceVersionOfRecordOrRecordItself')->willReturnArgument(0);
$view = new PageLayoutView();
$result = $this->callInaccessibleMethod($instance, 'processRecordOverlays', $input, $view);
$this->assertEquals($expected, $result);
}