SpringBootContextLoader.getEnvironment() is designed to allow a custom Environment to be returned by a subclass. We've kept the existing StandardEnvironment return in case existing users call super.getEnvironment(), but it would be clearer if the default return value were null.