Japan's under-23 national side will face potential Olympic opponent South Africa in a June 29 friendly in Nagano Prefecture, the Japan Football Association said Tuesday.

The game at Matsumotodaira Park Stadium will be Japan's last on home soil before the Rio de Janeiro Games. Japan's first Group B match is on Aug. 4 against Nigeria.

If Japan gets out of its group, Makoto Teguramori's squad could face South Africa, from Group, A in the quarterfinals.

"We haven't had too many matchups against African teams so this will be an excellent opportunity to test ourselves," Teguramori said.