public function testCanSendMiniRuleGetFromPricingRec()
 {
     $mockedSendResult = new Client\Session\Handler\SendResult();
     $mockedSendResult->responseXml = 'dummyminiruleresponse';
     $mockedSendResult->responseObject = new \stdClass();
     $mockedSendResult->responseObject->dummyprop = 'dummyminiruleresponse';
     $messageResult = new Client\Result($mockedSendResult);
     $expectedMessageResult = new Client\Struct\MiniRule\GetFromPricingRec(new Client\RequestOptions\MiniRuleGetFromPricingRecOptions(['pricings' => [new Client\RequestOptions\MiniRule\Pricing(['type' => Client\RequestOptions\MiniRule\Pricing::TYPE_OFFER, 'id' => Client\RequestOptions\MiniRule\Pricing::ALL_PRICINGS])]]));
     $mockSessionHandler = $this->getMockBuilder('Amadeus\\Client\\Session\\Handler\\HandlerInterface')->getMock();
     $mockSessionHandler->expects($this->once())->method('sendMessage')->with('MiniRule_GetFromPricingRec', $expectedMessageResult, ['endSession' => false])->will($this->returnValue($mockedSendResult));
     $mockSessionHandler->expects($this->never())->method('getLastResponse');
     $mockSessionHandler->expects($this->once())->method('getMessagesAndVersions')->will($this->returnValue(['MiniRule_GetFromPricingRec' => "5.1"]));
     $mockResponseHandler = $this->getMockBuilder('Amadeus\\Client\\ResponseHandler\\ResponseHandlerInterface')->getMock();
     $mockResponseHandler->expects($this->once())->method('analyzeResponse')->with($mockedSendResult, 'MiniRule_GetFromPricingRec')->will($this->returnValue($messageResult));
     $par = new Params();
     $par->sessionHandler = $mockSessionHandler;
     $par->requestCreatorParams = new Params\RequestCreatorParams(['receivedFrom' => 'some RF string', 'originatorOfficeId' => 'BRUXXXXXX']);
     $par->responseHandler = $mockResponseHandler;
     $client = new Client($par);
     $response = $client->miniRuleGetFromPricingRec(new Client\RequestOptions\MiniRuleGetFromPricingRecOptions(['pricings' => [new Client\RequestOptions\MiniRule\Pricing(['type' => Client\RequestOptions\MiniRule\Pricing::TYPE_OFFER, 'id' => Client\RequestOptions\MiniRule\Pricing::ALL_PRICINGS])]]));
     $this->assertEquals($messageResult, $response);
 }