Brazil enjoyed the perfect warm-up as they secured a 3-2 win over Mexico in their pre-Copa America friendly in Kyle Field stadium in Texas on Saturday.
Coach Dorival Junior, who assumed the Brazil job in January, decided to rest first-choice players such as Vinicius Jr, Rodrygo and Raphinha. His decision paid off as they took an early lead when Andreas Pereira scored from a Savio pass in the 5th.
Mexico enjoyed the majority of possession in the first half but lacked the cutting edge to test goalkeeper Alisson Becker, who replaced the injured Ederson after he was ruled out with a fractured eye socket.
Brazil doubled their lead nine minutes after the break when Eder Militao's long throw-in was met by Yan Couto, who flicked the ball back into the area for Gabriel Martinelli to tap in alone.
The Mexican side weren't done yet, though, as Julian Quinones scored in the 73rd minute from Alexis Vega's superb cross, before Guillermo Martinez Ayala equalised in the 92nd minute of added time.
But it was young prodigy Endrick who sealed Brazil's victory four minutes later, heading in a cross from Vinicius Jr, who had come on as a substitute.
"I'm very grateful to God for another opportunity to score for the national team. Thanks to the squad and Dorival's excellent work. We trained well and I hope we can work even harder because the goal is to win Copa America," said 17-year-old Endrick after the match.
The nine-times champions face the U.S. in another warm-up friendly on Wednesday before opening their Copa America campaign against Costa Rica on June 24 followed by Paraguay four days' later and Colombia on July 2.
The quadrennial tournament will be held in the United States from June 20-July 14.