we shifted to new Hooks API, but we can not migrate our unit tests, because no way to create *Context objects.
based on discussion with David, Jan, and Alexander:
Creating the Context(s) should be possible using:
Please, provide access to it from tests
as Jan pointed out it should already work from test packages:
The TypingHooksSpiAccessor is a public class, and the methods are public, so these are accessible from anywhere in the unit tests (there are no module level access restrictions inside unit tests). Of course the accessor's method may change, but if that is likely to only require simple updates in the tests.