public function testGetOriginalKeysLoadsInnerListOnFirstCall()
 {
     $this->loader->expects($this->once())->method('loadChoiceList')->with($this->value)->will($this->returnValue($this->innerList));
     $this->innerList->expects($this->exactly(2))->method('getOriginalKeys')->will($this->returnValue('RESULT'));
     $this->assertSame('RESULT', $this->list->getOriginalKeys());
     $this->assertSame('RESULT', $this->list->getOriginalKeys());
 }
 public function testGetOriginalKeysLoadsLoadedListOnFirstCall()
 {
     $this->loader->expects($this->exactly(2))->method('loadChoiceList')->with($this->value)->will($this->returnValue($this->loadedList));
     // The same list is returned by the loader
     $this->loadedList->expects($this->exactly(2))->method('getOriginalKeys')->will($this->returnValue('RESULT'));
     $this->assertSame('RESULT', $this->list->getOriginalKeys());
     $this->assertSame('RESULT', $this->list->getOriginalKeys());
 }