So that now we can create a TestApplication class in the test source set next to our testing infrastructure that we will be using later for starting our app locally with all required dependencies:
public class TestApplication {
public static void main(String[] args) {
var application = Application.createSpringApplication();
// Here we add the same initializer as we were using in our tests...
application.addInitializers(new AbstractIntegrationTest.Initializer());
// ... and start it normally
application.run(args);
}
}