Convert jar namespace test to the new API

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>