public void testInitApplicationContextNotSupported() throws Exception {
List<ClientApplicationContextProducer> producers = new ArrayList<ClientApplicationContextProducer>();
producers.add(notSupportedApplicationContextProducer);
ServiceLoader serviceLoader = mock(ServiceLoader.class);
when(serviceLoader.all(ClientApplicationContextProducer.class)).thenReturn(producers);
Instance<ServiceLoader> mockServiceLoader = mock(Instance.class);
when(mockServiceLoader.get()).thenReturn(serviceLoader);
TestReflectionHelper.setFieldValue(instance, "serviceLoaderInstance", mockServiceLoader);