JRuby is being stupid about object casts so I had to change the tests.
This, unfortunately, slightly changes the nature of the test such that
the identity of the objects being returned can no longer be guaranteed,
only their value.