Java sample: add tests from Zest