Spain took sweet revenge for their defeat against India in the bronze-medal match at the Paris Olympics, overcoming Harmanpreet Singh's side 3-1 in a FIH men's Pro League game.