Reminds me of the scene in "Amadeus," where Mozart is being introduced to the court of Joseph II. Salieri wrote a special welcoming march to greet Mozart. Mozart then sits down and proceeds to play an improved rendition, humiliating Salieri.
That was definitely one of the highlights at that movie.
That was a great scene. Here it is: