function it_adds_ReturnArgumentPromise_during_willReturnArgument_call_with_index_argument($objectProphecy)
{
$objectProphecy->addMethodProphecy($this)->willReturn(null);
$this->willReturnArgument(1);
$promise = $this->getPromise();
$promise->shouldBeAnInstanceOf('Prophecy\\Promise\\ReturnArgumentPromise');
$promise->execute(array('one', 'two'), $objectProphecy, $this)->shouldReturn('two');
}