Add a test Java script for travis