Spain wrapped up their preparations for the Confederations Cup with a 2-0 win over the Republic of Ireland in an international friendly at the Yankee Stadium in New York City.
Goals from substitutes Roberto Soldado and Juan Mata ensured Vicente del Bosque's side the victory, but they needed to overcome a determined Irish outfit to seal the win after a sluggish start to proceedings on the East Coast.
With the reigning world and European champions opening their Confederations Cup campaign in four days' time, the onus was on La Roja to perform admirably against the Irish ahead of the tournament, and the opening exchanges proved to be a distinctly slow affair.
Andres Iniesta fired a shot narrowly over the bar after a brilliant attacking phase in the early stages, but even though Del Bosque's side were typically dominating the possession count, they lacked the potency to trouble David Forde in the Ireland goal.
Nevertheless, the Boys in Green displayed plenty of fight to frustrate their more esteemed opponents - a far cry from last summer's capitulation at Euro 2012, and could've even taken the lead. Gerard Pique's indecision on the ball was punished by Sammon, who fired agonisingly wide when put one on one against Victor Valdes, in the half's best chance.
Spain, however, recovered from their poor opening, as Ireland began to open up. Pique's header had earlier been cleared off the line by Paul McShane, before a neat pass from Pedro in towards David Villa was intercepted at the last moment by the Hull City defender.
Giovanni Trapattoni's men were beginning to ride their luck, and were fortunate to not fall behind. Xavi teed up Pedro, who expertly turned away from his marker before firing a thundering shot off the underside of the crossbar, before David Silva struck hopelessly over the bar from the rebound as Ireland breathed a sigh of relief.
The second half proved to be an equally dogged affair, as Ireland continued to frustrate their opponents. The flurry of substitutions just before the hour allowed the world champions to add a new dimension to their attack, and it almost paid dividends as Jesus Navas tested Forde, before Pique's shot was thwarted by the goalkeeper.
Ireland's resistance was to be broken, as they finally folded. Darren O'Dea's poor clearance was picked up by Alvaro Arbeloa in an advanced position, before substitute Soldado struck cleanly past the impressive Forde to hand La Roja the lead. It could've been two seconds later, had Jordi Alba not struck narrowly wide.
The visitors had a goal chalked off for offside, in controversial circumstances. From a corner, which was helped on into the path of Simon Cox, in an offside position, before the ball was poked home by Sean St Ledger, sending the sizeable Irish contingent inside the stadium into raptures which soon was dashed by the referee's interjection.
Spain rallied from that scare, and finished strongly. Santi Cazorla saw a dipping effort from distance tipped over by substitute Darren Randolph, with Sergio Ramos heading narrowly over the bar from the resulting corner. Juan Mata wrapped up the game with a finely worked second goal, with a delightful chip over the goalkeeper on the back of a fine assist from Santi Cazorla.
Spain take on Uruguay in their Confederations Cup Group B opener on Sunday at the Arena Pernambucano in Recife, as attention turns towards the tournament in Brazil.
for David Silva 46'
for Iniesta 59'
for David Villa 59'
for Víctor Valdés 59'
for Xavi 69'
for Pedro 80'
|Kenya 0 Ethiopia 0 (agg 0-2): Hosts sent out of CHAN qualifiers after second penalty miss|
|Dortmund put 17 past Olympians, Bremen hand out thrashing|
|Dinamo Zagreb confirm arrests of coach and club president|
|I didn´t know who Wimbledon guest Klopp was - Brown|
|LeBron James backs Liverpool captain Henderson for FIFA 16 cover.|
|Ramos: I am not negotiating with anyone|
|Valencia complete Mina swoop|
|United States v Japan: US seek final redemption|
|Hanousek consigns Celtic to defeat|
|Roma confirm Dzeko interest|
|Arsenal forward Podolski completes Galatasaray switch|
|Warm Dortmund welcome delights Tuchel|
|Silva vows to fight for Madrid place|
|Mancini hints at Shaqiri and Santon departures|
|Bojan raring to go after return from injury|
|Babel backs Firmino to shine at Liverpool|
|Falcao must wait to impress, warns Chelsea favourite|
|Bartomeu: Deal in place for Turan|
|Parejo re-signs with Valencia|
|MLS Review: Sounders return to winning ways|
|Klinsmann unhappy with USA performance|
|High hopes for Paraguay - Diaz|
|Gareca: More to come from Peru|
|Gerrard had European offers|
|Argentina out to spoil Chile´s party - Martino|
|Sampaoli: Chile won´t change style|
|Di Maria will come good at United - Rojo|
|Peru 2 Paraguay 0: Gareca´s men finish third at Copa|
|United States 4 Guatemala 0: Klinsmann´s men win comfortably|
|´I’d prefer no-one to know my name´ - Bassett|
|Matthews completes Sunderland move|
|Podolski set for Galatasaray medical|
|Gundogan inspires Dortmund victory|
|Inter confirm Montoya capture|
|Murillo joins Inter, as Kuzmanovic and Obi depart|
|Falcao signing not a risk, says former Chelsea star|
|Deeney agrees new Watford deal|
|Confidence and service the key to Falcao success at Chelsea|
|No bids for ´Chelsea target´ Baba, claim Augsburg|
|Derby swoop for Ince|
|Fiorentina consider legal action over Salah ´no-show´|
|Chelsea the team to beat in the Premier League, says Neville|
|Storari exits Juve for Cagliari|
|UEFA removes FFP restrictions on Man City and PSG|
|West Brom hope for new owners within the month|
|Chelsea agree loan deal for Falcao|
|Kuyt eyes trophies on Feyenoord return|
|Chile v Argentina: History beckons ahead of Copa America final|
|Wallace extends Monaco loan|
|Mihajlovic wants to instill fear factor at Milan|
|Mignolet improving at Liverpool - Grobbelaar|
|Mumbai City name Anelka player-manager|
|Olivia the parrot predicts Japan to win Women´s World Cup|
|Lusitans coach blasts Bilic´s ´lack of respect´|
|Sakho eyes more Europa League wins|
|Gareca wants Peru to keep building|
|Chile ´no chance´ if Argentina produce their best - Diaz|
|Ocampos joins Marseille permanently|
|Europa League Review: Cloud-nine Brondby ignite opening round|
|West Ham 3 Lusitans 0: Sakho nets twice at start of Europa League journey|
|Holebas makes Watford move|
|Milan secure Adriano signing|
|Peru v Paraguay: Diaz counts cost of semi-final loss|
|Bastia hit out at reports of extra debt|
|Hernandez has successful surgery|
|Odemwingie signs one-year Stoke extension|
|Uth signs for Hoffenheim|
|Henen seals Everton return|
|Cattermole pens long-term Sunderland deal|
|United States v Guatemala: Klinsmann backs Dempsey ahead of Gold Cup warm-up|
|West Ham working on Jenkinson return - Gold|
|Milan agree deal for Bacca|
|Real buy back Vazquez from Espanyol|
|Richards leaves Swansea for Fulham|
|McShane signs for Reading|
|Giggs tells youngsters to seize US chance|
|Hammond pens Leicester extension|
|Only Schweinsteiger can decide Bayern future - Guardiola|
|Cech plans to play until he´s 40|
|Montoya arrives in Milan ahead of Inter move|
|Hernandez out of Gold Cup|
|US asks Switzerland to extradite seven FIFA officials|
|MLS Preview: Sounders seek momentum switch|
|Mexico 0 Honduras 0: Hernandez injury sours friendly|
|Hernandez taken to hospital|
|Garay in doubt for Copa America final|
|Wambach: USA peaking for World Cup final|
|Bassett ´an absolute hero´ despite own goal - Sampson|
|Japan 2 England 1: Late own goal breaks English hearts|
|Salvo quits as Valencia president|
|Costa not Ribery cover - Bayern director Sammer|