Call application.beforeTest()/prepareTest()/afterTest() if you application implements TestLifecycleApplication.