Santi Cazorla and Juanfran were on target as Spain laboured to a 2-1 friendly victory over Equatorial Guinea.
The world champions dominated the majority of the game in Malabo on Saturday but were wasteful in front of goal, with substitute Fernando Llorente particularly guilty.
Andoni Goikoetxea's charges briefly threatened a shock draw when Jimmy Bermudez cancelled out Arsenal midfielder Cazorla's opener, but Juanfran's winner spared Spain's blushes.
Spain produced the best openings of the first half and Jesus Navas' lob almost put the visitors ahead efore Cazorla capitalised on a mistake from Danilo.
Equatorial Guinea equalised through Bermudez's header, but the sides were level for just seven minutes as Juanfran thrashed home from close range.
Spain had several opportunities to increase the lead and Llorente thought he had added a third, only for Andres Iniesta to be ruled offside in the build-up.
Vicente del Bosque took the opportunity to rest several of his star players and handed a debut to Marc Bartra, while Ivan Bolado was given the role as Equatorial Guinea's lone striker.
The visitors dominated first-half possession and were nearly ahead as early as the seventh minute when Navas' inventive chip almost dipped over Danilo.
Spain were duly rewarded for their pressure six minutes later, when Danilo dropped a straight-forward cross from Juan Mata and Cazorla profiting from the gaffe as he tapped into the empty net.
Equatorial Guinea had their first sight of goal after 35 minutes when Rodolfo Bodipo met Javier Balboa's centre, but his strike was deflected over the crossbar.
And from the resulting corner the home fans were sent into delirium when Bermudez levelled by rising highest to head home Juvenal Edjogo's delivery.
However, their joy was short-lived as three minutes before the break Cazorla's cross deflected into the path of Juanfran and he rifled home from close range.
Llorente was introduced as a second-half substitute and will feel he could have done better after 54 minutes when he shot tamely at Danilo from Navas' cushioned header.
The Juventus striker did have the ball in the back of the net on the hour-mark when he tapped home Iniesta's centre, but the Barcelona midfielder was harshly adjudged to be offside in the build-up.
Spain's dominance continued and Llorente missed another clear opportunity with a weak back-post header from Navas' deft cross with 20 minutes remaining.
Several substitutions in the close stages stemmed the flow of the match, as Spain comfortably saw out the victory.
|Coach: Andoni Goikoetxea|
for Iván Bolado 46'
for Thierry Fidjeu 61'
for Doualla 82'
for Javier Balboa 86'
for Juvenal 89'
|Seifert hails Bundesliga quality|
|Osman confident of Everton improvement|
|Kroos set for Real switch|
|MLS Preview: Sporting KC eye top spot, Red Bulls visit Union|
|Seattle Sounders 2 Portland Timbers 0: Conference leaders leave it late|
|2014 FIFA World Cup: Tweets of the tournament|
|2014 FIFA World Cup: Best goals|
|2014 FIFA World Cup: Tournament in numbers|
|2014 FIFA World Cup: To Russia with love?|
|2014 FIFA World Cup: Gotze glory rounds off captivating spectacle|
|World Cup win is unbelievable, says Gotze|
|Downing talks up Valencia arrival|
|Kramer: ´I can´t remember very much´|
|Peru Primera Division Review: Inti Gas go top, Universitario lose|
|Klose to decide on Germany future|
|Ecuador Primera A Review: Emelec poised for championship|
|Devastated Messi: Golden Ball not important|
|Messi comparison inspired Gotze, says Low|
|Hummels: I´m on another planet|
|Messi named player of the tournament|
|Sabella proud of players, defends Messi|
|Adebayor contracts malaria, out of US tour|
|Lahm ecstatic after World Cup triumph|
|Newcastle complete Cabella deal|
|Mascherano endures World Cup pain|
|2014 FIFA World Cup Final: Player Ratings|
|2014 FIFA World Cup Final: Where the final was won and lost|
|2014 FIFA World Cup Final: New Germany ready to dominate|
|2014 FIFA World Cup Final: Germany 1 Argentina 0 (after extra time)|
|BREAKING NEWS: Germany win World Cup|
|Rousseff thanks Brazil despite World Cup woe|
|Fred ´finished´ with Brazil|
|Manchester City lose to Dundee in pre-season opener|
|Rami keen to restore Milan glories|
|Thai Premier League Review: Muang Thong win again, BEC Tero Sasana pay penalty|
|In-demand Lovren joins Southampton on tour|
|Adidas to stick with Suarez|
|Cesar accepts Brazil career all but over|
|Rodriguez signs new Fiorentina deal|
|UEFA Champions League Preview: Celtic begin campaign, Steaua in Norway|
|K.League Review: Steelers maintain lead as top four all win|
|Suso eager for Liverpool stay|
|McDonald allays West Ham injury fears|
|Basanta urges Argentina to enjoy the moment|
|Schweinsteiger: Germany have big-match experience|
|Vidal relaxed over future|
|Bartomeu drooling over Barca strikeforce|
|Gerrard should remain captain, says Beckham|
|Cafu throws support behind Scolari|
|Sabella warns Argentina|
|MLS Review: Henry, Defoe star, as late goals rain down|
|Klinsmann: Germany are favourites|
|Robben rejects Van Gaal´s United proposal|
|Blind hopes Dutch youngsters stick together|
|Thiago Silva frustrated by failure|
|Adrian leaves Atletico for Porto|
|Van Gaal proud after Dutch win|
|Scolari leaving future up to CBF|
|Mixed emotions for Robben|
|FIFA World Cup: Brazil 0 Netherlands 3|
|Sabella remains unsure of Di Maria fitness|
|Abdennour pleased with friendly workout|
|Halilhodzic to take charge at Trabzonspor|
|Fenerbahce delighted to finally sign Diego|
|Low and Germany ready for finale|
|Lyon agree Rose deal|
|Neymar´s World Cup delights Bartomeu|
|De Laurentiis: Higuain going nowhere|
|Beckham lauds ´amazing´ Messi|
|PSG beat Videoton in seven-goal thriller|
|Horta makes Malaga switch|
|Southampton seal deal for Pelle|
|Barcelona ´convinced´ of reduction in Suarez ban|
|West Ham held by League Two Stevenage|
|Bianchi makes move to England|
|West Ham must be more clinical, says Allardyce|
|Germany experience will count - Lehmann|
|Berahino and Dorrans strike in Albion win|
|Ince settling quickly at Hull|
|Swansea in talks with Napoli over Michu|
|Dodo eyes Champions League with Inter|
|FIFA World Cup Preview: Germany v Argentina|
|Huddlestone out to hit the ground running|
|Pogba not bound for Chelsea - agent|
|Barry feeling fresh with Everton|
|Arteta plays down transfer talk|
|PSV complete De Jong deal|
|Colback excited for busy pre-season|
|Milan and Orlando in talks over Robinho|
|West Brom bring in Pocognoli|
|Maradona: Messi will define World Cup final|
|Rami seals Milan move|
|Kuyt eager to secure third place|
|Rodriguez talks up Real Madrid move|
|Bebe welcomes Benfica link|
|Koeman admits unsettled Lovren could leave|
|FIFA World Cup Final Preview: Argentina face old foes Germany with Brazil´s party in tatters|
|FIFA World Cup Final Preview: Messi aims to cement legacy|
|FIFA World Cup Final Preview: Sabella on the brink of greatness|
|FIFA World Cup Final Preview: Muller seeks to augment outstanding finals record|
|FIFA World Cup Final Preview: Low´s hard work pays off|
|FIFA World Cup Final Preview: The coaches to have tasted glory|
|FIFA World Cup Final Preview: The five most iconic finals|
|FIFA World Cup Final Preview: The five most iconic finals|
|FIFA World Cup Final Preview: Germany´s route to the final|
|FIFA World Cup Final Preview: Brazil 2014 produces moments to remember|
|SJ Earthquakes 1 DC United 2: Johnson, Silva score as Eastern Conference leaders extend advantage|
|Otamendi unfazed by price tag|
|Sam targeting top three with Schalke|
|Rodriguez out for revenge|
|Bruno Alves could leave Fenerbahce|
|Thiago Silva endured sleepless nights|
|Final on enemy soil ´special´, says Zabaleta|
|Arteta: Sanchez signing highlights Arsenal´s ambition|
|Mertesacker demands repeat performance|
|Scolari gets federation backing|
|Balotelli poses with shotgun|
|Lizarazu lauds Argentina´s craftiness|