Java tests.