In Spring 5.0.0 the SpringFactoriesLoader is stateful and BootstrapApplicationListener inadvertently modifies the state by adding class names to a list loaded from spring.factories. Probably harmless in most apps, but caused some tests to fail (depending on the order they were run in).