Add a test for JRUBY-6874.
Fix headers in new files.