Former Barcelona playmaker Neymar Junior scored the winning goal courtesy of a penalty in the 77th minute as Brazil beat Japan 1-0, in an international friendly in Tokyo.
Brazil have been training in South Korea and Japan over the past couple of weeks.
They trashed South Korea 5-1 in another friendly last Thursday in preparation for the World Cup in Qatar later this year.
Samba boys were drawn in Group G, where they will face off against Serbia, Switzerland and Cameroon.
Brazil remain the only country that has won the competition five times.
They lost the final of the Copa America to Argentina in Rio de Janeiro last summer but have generally been all-conquering since Tite took charge.
They will be determined to win their first World Cup in 20 years.