Working with java test cases

Signed-off-by: Bao Haojun <baohaojun@gmail.com>