public function testRetrievingMulticallResult()
{
$this->client->expects($this->once())->method('call')->with('system.multicall', array(array(array('methodName' => 'method1', 'params' => array('arg11', 'arg12')), array('methodName' => 'method2', 'params' => array('arg21', 'arg22')))))->will($this->returnValue(array('return1', 'return2')));
$result = $this->multicallBuilder->addCall('method1', array('arg11', 'arg12'))->addCall('method2', array('arg21', 'arg22'))->execute();
$this->assertSame(array('return1', 'return2'), $result);
}