ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class);
getManager().bind(ApplicationScoped.class, ServiceLoader.class, serviceLoader);
getManager().bind(ApplicationScoped.class, ArquillianDescriptor.class, descriptor);
Mockito.when(serviceLoader.all(Configurator.class)).thenReturn(
Arrays.<Configurator>asList(new MockDronePriorityFactory(), new MockDroneFactory()));
Mockito.when(serviceLoader.all(Instantiator.class)).thenReturn(
Arrays.<Instantiator>asList(new MockDronePriorityFactory(), new MockDroneFactory()));
}