There's one catch though. The game will be played only a few days after next season's Super Rugby final and any All Blacks involved in the tournament's showpiece game for their franchises won't be considered for the trip to Apia.
A nightmare scenario for all involved would be an all-Kiwi Super Rugby final but Hansen said they were prepared for the worst-case scenario.
"If we've got two teams in the final, well we'll still have an All Black team going to play Samoa and it'll be the best team we can pick and they'll be expected to play like All Blacks.
"We've been through about all the things that could possibly happen and we still think we can go there and represent New Zealand the way they should be represented."
Samoan Prime Minister Tuilaepa Lupesoliai Sailele Malielegaoi, who is also chairman of the country's rugby union, said it would be an honour to host the All Blacks.
"It is well documented that New Zealand rugby has included many, many players of Pacific Island heritage, especially Samoans," he said.
"Our contributions to New Zealand rugby have been well known. It is therefore fitting that Manu Samoa will be hosting the All Blacks and I take this opportunity to express my very sincere appreciation for the support and work of so many people in making this rugby match possible."
Commercial sponsors have made the game a reality, while in a rare move New Zealand Rugby will only have their costs covered for the test rather than turn a profit.
A recently created loophole in the IRB's player eligibility laws could also boost teams like Samoa.
Players who have not represented a national team for 18 months and hold a passport for another country can apply to change their stripes on the proviso they play for their new nation's sevens side during the 2014-2015 sevens world series.
A potential switch would then make them eligible for next year's World Cup and to play sevens at the Rio Olympics in 2016.
Sport and Recreation Minister Murray McCully has welcomed the announcement, saying the two country's were bound together by a "shared passion for the game of rugby".
"The All Blacks playing in Apia recognises the importance of Samoa and other Pacific nations to our national side and our national game," he said.
"This historic test will reflect the fact that some of the best known All Blacks have Pacific heritage and Pacific people have made an enormous contribution to New Zealand rugby at all levels."
The game would be a "major boost" for Samoan tourism, attracting fans from around the world, Mr McCully said.
Pacific Island Affairs Minister Peseta Sam Lotu-Iiga said the local Samoan community were already preparing to attend en masse.
"It is an honour for Samoa, but also an event not to be missed for the local Samoan community who make New Zealand their home. No doubt there will be a lot of mixed emotions about who to support and the atmosphere will be incredible," Mr Lotu-Iiga said, adding "the stakes will be high" in the run-up to the world cup.
It would also be a "prime opportunity for New Zealand Samoans to be on the winning team's side, no matter what the result is", he said.
Labour's Pacific Affairs spokesperson Su'a William Sio said the game was sure to "go down in history".
"Samoa, along with other Pacific nations, has given enormously to New Zealand, not least in the contributions from, among many, Frank Bunce, Michael Jones, Jerome Kaino, Keven Mealamu, Tana Umaga and Julian Savea to All Black rugby.
"I know there will be thousands travelling from New Zealand and around the Pacific to Samoa to watch this historic game. It will be rugby at its very best."