Debutant Bryson Goodwin scored a brace of tries for New Zealand as they warmed up for the Four Nations tournament with a battling 40-24 victory over Tonga.
The world champions led 24-8 at the break only for Tonga to draw level at 24-24 in the one-off Test in Rotorua.
But the home side, which included four new caps, sealed the win with three tries in the final quarter.
Benji Marshall (2), Junior Sau, Sam Perrett, Nathan Fien, Steve Matai also went over for Stephen Kearney’s team.
Goodwin was born in New South Wales and is the son of former Australia international Ted Goodwin.
But the 23-year-old Canterbury Bulldogs winger, who has scored 20 tries in 24 tries in the NRL this season, chose to pledge his international allegiance to New Zealand.
The Kiwis kick off their Four Nations campaign against Australia at the Twickenham Stoop in London on 24 October.
England and France are also involved in the competition.