Test Java Code