Added a trivial java unit test and java class