Spain saw off Egypt 2-0 in their penultimate World Cup warm-up game in Elche.
Goals in each half from Raul and Jose Antonio Reyes were enough to give the Spaniards a morale-boosting victory.
Luis Aragones named a strong looking line-up for the clash with the African Cup of Nations holders as he formulates plans for the World Cup.
Spain broke the deadlock on 14 minutes when Real Madrid star Raul found the net.
Arsenal ace Reyes came off the bench in the second half to net the second goal for the home side on 56 minutes.
Spain play their final warm-up game against Croatia next week.
The win was the perfect boost for Spain ahead of their World Cup opener with Ukraine on June 14.