World champions Spain held on for a 2-1 win over Haiti in a friendly on Saturday as they warmed up for this month's Confederations Cup.
After Fernando Torres went close with a spectacular volley, Vicente del Bosque's team grabbed the lead in the eighth minute with a low drive from 25 yards by Santi Cazorla.
The Spaniards doubled their advantage in the 19th minute when Juan Mata chipped the ball to Cesc Fabregas, who glanced in a header.
Spain introduced Barcelona midfielders Andres Iniesta and Xavi in the second half and almost made it 3-0 when Roberto Soldado struck the post in the 70th minute.
But Haiti stuck at the task and delighted their fans in the 36,535 crowd at Sun Life Stadium with a goal in the 76th minute.
The ball fell to left back Wilde-Donald Guerrier, who showed electric pace and great composure to burst past the Spanish defence, round substitute keeper Pepe Reina and slot home.
It was just reward for Haiti's efforts but Spain kept their cool in the final minutes to ensure they avoided a potentially embarrassing scoreline.
"In the first half, I think we played to our level, we controlled the ball and created chances," said Del Bosque.
"After the break we put less pressure on, played with less intensity and Haiti were able to see more of the ball and play better, but overall it was a good test for us."
The biggest smile after the game was on the face of Haiti goalscorer Guerrier, who revealed that his son Cristiano, named after Real Madrid winger Cristiano Ronaldo, had been born just a day before the game.
"It was a great honour to play against the world champions and I think we showed that Haiti is not only about the earthquake we had, but we showed that we have talent," said the defender.
"I was very pleased to get a goal against the number one team in the world. They are great players but they are human beings, they aren't from another planet."
The Spaniards play another friendly, against Ireland on Tuesday at New York's Yankee Stadium, before heading to the Confederations Cup in Brazil where they will face Uruguay, Nigeria and Tahiti in Group B.
Haiti will also head to Brazil to play Italy in a friendly on Tuesday, which will also serve as a fundraiser for the victims of the 2010 earthquake in the country.
Image: Spain's Cesc Fabregas (centre) dribbles between Haiti's Constant Monuma (left) and Jean-Marc Alexandre (second right) as Haiti's Yves Hadley Desmaret (right) looks on during an exhibition soccer match in Miami Gardens, Florida
Photograph: Andrew Innerarity/Reuters
Have I peaked yet? Serena not satisfied with No 16
Tiger Woods's ex 'hates' his new girlfriend Vonn
World Cup qualifiers: Argentina held by Colombia, Chile win
Dhoni 16th on Forbes' list of highest-paid athletes
'Semi-nude Steenkamp photos not intended for Pistorius'