public function testLoadAllWithLimitAndOffset()
{
$mockedService = $this->getPartlyMockedURLWildcardService();
/** @var \PHPUnit_Framework_MockObject_MockObject $handlerMock */
$handlerMock = $this->getPersistenceMock()->urlWildcardHandler();
$handlerMock->expects($this->once())->method('loadAll')->with($this->equalTo(12), $this->equalTo(34))->will($this->returnValue(array(new SPIURLWildcard(array('id' => 'Luigi', 'sourceUrl' => 'this', 'destinationUrl' => 'that', 'forward' => true)))));
$urlWildcards = $mockedService->loadAll(12, 34);
$this->assertEquals(array(new URLWildcard(array('id' => 'Luigi', 'sourceUrl' => 'this', 'destinationUrl' => 'that', 'forward' => true))), $urlWildcards);
}