Add Java test
Merge pull request #390 from rhy-jot/2013-12-20/java-test

Add Java test