Class<?> testClass = getClass();
Method testMethod = testClass.getMethod("shouldHandleLifeCycleEvents");
Object testInstance = this;
TestMethodExecutor testExecutor = Mockito.mock(TestMethodExecutor.class);
Mockito.when(testExecutor.getInstance()).thenReturn(testInstance);
Mockito.when(testExecutor.getMethod()).thenReturn(testMethod);
// ApplicationContext is auto started, deactivate to be future proof
manager.getContext(ApplicationContext.class).deactivate();
verifyNoActiveContext(manager);