TestReflectionHelper.setFieldValue(instance, "serviceLoaderInstance", mockServiceLoader);
InstanceProducer<RemoteTestScopeApplicationContext> mockApplicationContext = mock(InstanceProducer.class);
TestReflectionHelper.setFieldValue(instance, "applicationContextInstance", mockApplicationContext);
instance.beforeTest(new org.jboss.arquillian.test.spi.event.suite.Before(new TestMethodTest(),
TestMethodTest.class.getMethod("testMethod")));
verify(mockApplicationContextCreatedEvent).fire(any(ApplicationContextCreatedEvent.class));
verify(mockApplicationContext).set((RemoteTestScopeApplicationContext) notNull());
}