I am still not so happy with this way of getting the package, because it is really similar to way which the tested method uses. It would be better to mock the package.