Bastian Schweinsteiger put Germany ahead before Borussia Dortmund wonderkid Mario Goetze doubled the lead.
Robinho pulled one back for Brazil but Bayer Leverkusen prospect Andres Schurlle restored the two goal lead, and Neymar struck in injury time to finish the scoring.