England beat Spain 3-2 in the Ergo Masters to complete their preparation for this month's EuroHockey Championships in London.
Sam Ward's late goal - his second of the game - sealed the win, ensuring England finish third in the table.
It is England's first win in the four-team event in Hamburg after a 3-3 draw with Belgium and a 1-0 loss to Germany.
England are one of 16 teams competing in the EuroHockey Championships in London from 21-30 August.
They had to come from behind to win on Sunday, after Marc Salles gave Spain a fifth-minute lead.
England hit back through Ward, but Spain re-established their lead just before the end of the first quarter through Alex Casasayas.
Ashley Jackson's fourth goal of the tournament just after half-time drew England level, then Ward pounced to fire home a rebound from a penalty corner with three minutes remaining.
"The tournament overall has been perfect for us," said England head coach Bobby Crutchley. "It's been very good quality opposition and against three high-quality games which, leading into the EuroHockey Championships, is exactly what we want.
"We've had a chance to look at some players and we have some tough decisions to make as we name the squad for the tournament.
"With the information we have on the group and the depth of quality we're starting to show, I'm confident we'll make the right selection decisions."