GELSENKIRCHEN, Germany (AFP) - Germany laboured to a 2-0 friendly win over Hungary on Saturday in their final Euro 2016 warm-up match as captain Bastian Schweinsteiger returned after three months out with injury.
A first-half own-goal by Hungary defender Adam Lang and a second from Thomas Mueller in Gelsenkirchen gave the Germans a confidence boost before their opening match against Ukraine next Sunday in Group C of the European Championship.
This was no more than a satisfactory performance from the world champions, who have a habit of raising their game for major tournaments, and this was the first time Germany had kept a clean sheet in the last year.
The biggest boost for the Germans was the return of Manchester United midfield general Schweinsteiger, who came off the bench for the final 20 minutes to play his first football since tearing the medial ligament in his knee in March.
After an experimental side, boasting four new caps, was humbled 3-1 by Slovakia in last Sunday's friendly, Germany's head coach Joachim Loew named a full-strength side, starting with seven of the team which finished the 2014 World Cup final.
Having toyed with playing a three-man defence, Loew reverted to the 4-2-3-1 which won Germany the title in Brazil.
He started with Cologne's Jonas Hector at right-back for the first-half, then Liverpool's Emre Can for the second, in the only defensive position still to be decided before the Euro starts.
World Cup winner Mario Goetze put in a lively performance for his 78 minutes, threatening as a striker, then dropping back when Mario Gomez came on for the second half and helped set up Mueller's goal.
Germany had the ball in the Hungary net after just 59 seconds.
Goetze's pass across the box was drilled home by Julian Draxler, but the goal was ruled offside although replays showed the Wolfsburg midfielder was onside when the final pass was made.
Centre-back Antonio Rudiger then headed wide with ten minutes gone as the Germans hunted the opening goal in Gelsenkirchen.
The hosts finally took the lead when the ball deflected off the shin of Lang, who was jostling with Goetze at the near post following a cross from Hector, and flew past Hungary's 40-year-old goalkeeper Gabor Kiraly on 39 minutes.
Mueller added Germany's second on 63 minutes after Jerome Boateng floated in a superb cross.
Gomez unleashed a powerful header which Kiraly could only parry, but Mueller was on hand to tap in his 32nd goal on his 71st international appearance.
Lukas Podolski came on for Goetze for the final ten minutes to make his 128th appearance for Germany on his 31st birthday.
Germany open their Euro 2016 campaign against Ukraine on June 12 in Lille while Hungary play Austria in their first Group F match two days later in Bordeaux.