I had a 2010 MBP under Applecare that started to have some problems late 2012, almost at the end of its warranty. The screen was freezing and flickering so i took it in, replicated the problem and they attempted to repair it. They replaced the screen, found that didn't work, attempted to replace RAM, motherboard, everything and nothing worked so they declared it end of life.
The genius said since it was still under warranty but the 2010s were no longer kicking around for replacements, that they would replace my machine with the equivalent current model which was the 2012. I had bought the fully upgraded (other than hard drive) 2010 model, with the HR-AG, so they would give me the identical 'fully loaded' one in the 2012... Top processor, HR-AG, RAM, etc.,
OR! (this is where its gets good)... if i wanted something different, they would give the value of that new one (which was $2599) on any other machine and I could pay for any upgrades or changes. So i went with a loaded retina model and they only charged me the difference between the loaded retina and the $2599 cMBP equivalent of my machine. It worked out to 700$ for everything i wanted in it. Very impressed with apple.