fixed typos in java_spec.rb