Daniel Sturridge struck a late header to help England to a 1-0 win over Denmark at Wembley.
Sturridge leapt high to head home Adam Lallana's cross with eight minutes left of what was otherwise an uninspiring 1-0 win.
This match was billed as a grand audition for England's fringe players to prove to Roy Hodgson that they deserved a place on the plane to Brazil.
For the most part it was something of an anti-climax though, as England lacked purpose and a cutting edge in the first half in particular.
When Cesare Prandelli looks at the tape of the first 45 minutes of this encounter at Wembley, the Italy coach will hardly be quaking in his boots.
But Hodgson had always earmarked this game as one to experiment, so a little leeway should be given to the England manager.
The first half experiment of deploying Sturridge out wide did not work, though.
The striker, scorer of 32 goals in 39 games while playing as a main frontman, was inexplicably positioned on the left wing.
It was only when Sturridge was moved into the centre after the break that he had the biggest impact, and his goal was a superb poacher's effort.
Other positives should be taken too. Raheem Sterling hit a post and won the man of the match award.
Luke Shaw did not look out of place when he came off the bench to make his debut at left-back, but Ashley Cole also put in a very impressive 45 minutes for the Three Lions.
But the feeling remains that Hodgson still has a lot of work to do with his players by the time England's World Cup opener against Italy takes place on June 14.
The 68,573-strong Wembley crowd managed to replicate the atmosphere of Sunday's League Cup final following a touching minute's applause to Tom Finney.
But neither team responded and a dull first half unfolded.
Hodgson's suspect line-up did not help. Sturridge, one of five Liverpool players in the home team, started wide and just nine minutes in he was stationed at left-back, defending Lars Jacobsen's cross.
The only flash point in the opening 15 minutes came when Daniel Agger caught Jack Wilshere's left ankle in a challenge.
The midfielder slammed the turf in agony, and Hodgson came to the touchline looking concerned, but after two minutes' worth of treatment, the Arsenal man was fine to carry on.
Denmark barely ventured over the halfway line, but England offered little down the other end either.
Steven Gerrard pinched the ball off Casper Sloth, but the defender took the England captain down before he could shoot.
Sloth was issued with a yellow card and, had it not been a friendly, he could have seen red. It did not matter much anyway as Wayne Rooney put the resulting free-kick high and wide of goal.
Rooney pierced the back four with a clever run, but Kasper Schmeichel came to the rescue. The goalkeeper then stood carefree as Gary Cahill's volley sailed over.
Joe Hart was called into action for the first time after half an hour to collect a long ball over the top before Nicklas Bendtner could finish.
Jakob Poulsen then set home nerves jangling when he cut in from the right flank and squared the ball across the box, but Gary Cahill and Cole cleared before Bendtner could convert.
The chance spurred England into life. Sterling and Peter Ankersen slid in at the far post to meet Cole's dangerous cross but the ball struck a post and Denmark survived.
Schmeichel kept his team level just before the break when he spread his body wide just like his father used to do to deny Sturridge.
Hodgson re-jigged his team at the interval with Shaw replacing Cole. Sturridge also swapped places with Rooney, but England could still not find a cutting edge.
Boos rang out as Rooney was replaced by Danny Welbeck. England's other substitute, Adam Lallana, showed promise with a clever turn which fooled two Danish defenders, but there was still no threat to Schmeichel.
Welbeck then impressed, turning and firing a low shot which the Danish stopper saved.
The Danes were still a threat on the break, though. Hart spread himself wide to deny Morten Rasmussen, who had replaced the ineffective Bendtner two minutes earlier.
Henderson then flicked a ball through to Welbeck but Schmeichel made himself look like a giant starfish to deny the Manchester United striker.
Schmeichel was there to deny England again soon after. This time the Leicester man punched Sturridge's fierce shot away.
Just as some supporters started heading for the exits, Sturridge won the game for England.
Sterling found Lallana with a short corner and the Southampton midfielder lifted a delightful chip into the box which Sturridge converted. It was just his third England goal.
The relief inside was palpable as Sturridge swayed his hips in celebration.
However, if England are to enjoy the Samba in Brazil this summer they will have to play much better.