add java code and test