title: SpringBootTest: how to know when boot application is done
body: <p>Spring boot integration test looks like this</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest(classes = Application)
  class IntegrationTest {
  
    static QpidRunner qpidRunner
  
    @BeforeClass
    static void init() {
      qpidRunner = new QpidRunner()
      qpidRunner.start()
    }
  
    @AfterClass
    static void tearDown() {
      qpidRunner.stop()
    }
  
  }
  </code></pre>
  
  <p>So, Qpid instance is run before and teared down after all tests. I want to know is there a way to check whether spring boot application is still running before calling <code>qpidRunner.stop()</code>. I want to stop Qpid only when I'm sure that spring app has finished its stopping.</p>