Well it makes it impossible to subclass this class effectively for the hardcoded calls in the other function. Please don't use static. Either instantiate this object and test this method, or put this method in a separate class and make that a dependency of the migrator.