Make test Java 6 compatible for TravisCI (hopefully)