We want to unit test a service. We want this service to have the right config for the right environment (dev, prod or stage).
We can use a dummy config like this:
MyServiceImpl.Config config2 = mock(MyServiceImpl.Config.class);
context.registerInjectActivateService(new MyServiceImpl(config2));
Is it possible to pull in the same config as a running environment would, instead of creating a dummy one?