Chelsea ace Cesc Fabregas scored the winner and set up another as Spain came from behind to beat Costa Rica 2-1 on Thursday.
Winger Johan Venegas scored the opening goal of the game in the sixth minute to give Los Ticos the lead, but Fabregas assisted for Paco Alcacer to level things two minutes later.
The Blues midfielder Fabregas then scored the winner on the half-hour mark to give Vicente del Bosque's La Furia Roja
Spain will travel to Belarus for a Euro2016 qualifier on Sunday, sitting second in Group C, three points behind leaders Slovakia.