title: How to load h2 data in spring boot test before component initialization
body: <p>I have a @Component with @Scheduled method which runs every x mins (fixed delay)
  While running my integration @SpringBootTest, this component gets initialized with application context, and then executes my test methods</p>
  
  <p>The scheduler polls DB periodically and executes some logic. So as soon as application-context is loaded, it requires data pre-loaded in h2 database</p>
  
  <pre><code>@Component
  public class MyScheduler {
     ...
     ...
      @Scheduled(fixedDelayString = "${poll.interval:300}")
      public void testXYZ() throws Exception {
          dbService.fetchRecords();
          //do blah blah
      }
  }
  </code></pre>
  
  <p>How can I pre-load initial data in h2 before @SpringBootTest application-context is loaded ?</p>
  
  <p>I want to perform data assertions based on few @Scheduled periodic runs once the service comes up in my integration test</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @SpringBootTest
  public class MyIntegrationTest{
  
      ...
  
      @Test
      @Sql(scripts={"classpath:data/data.sql"}, 
      config=@SqlConfig(transactionMode = TransactionMode.ISOLATED), 
      executionPhase = ExecutionPhase.BEFORE_TEST_METHOD)
      testMySchedulerLogic() {
          assertTrue(isProcessed(), true);
      }
  }
  </code></pre>