InstanceProducer<RemoteTestScopeApplicationContext> mockApplicationContext = mock(InstanceProducer.class);
when(mockApplicationContext.get()).thenReturn(containerTestScopeApplicationContext);
TestReflectionHelper.setFieldValue(instance, "applicationContextInstance", mockApplicationContext);
instance.afterSuite(new AfterSuite());
verify(applicationContextDestroyer).destroyApplicationContext(any(TestScopeApplicationContext.class));
}