I don't think people realize just how much Musk is laughing at all this. He gave away many electric car patents because he knew he would profit from it so long as he has the best battery factory in the world. As it stands Tesla owns the building, the factory and rents some of it out to Panasonic.
Unless Mercedes finds a cheaper battery elsewhere they're going to be paying Tesla for these.