Fix package names and method signatures for tests

This change replicates the previous changes made to update package
names, remove the SqlException signature for `HibernateCallback`, and
add the Lucene version constants in some of the tests.
Update TokenizationTest for new TokenStream API

The `TokenStream` in Lucene no longer operates like a vanilla iterator
with `next()`. Instead we need to retrieve the `Token` using the
`getAttributes()` method and advance the stream using the
`incrementToken()` method.