@Test @DisplayName("Supplies group factories from ServiceLoader") void testGetInstanceWithFactoryContext() throws Exception { exposeService(InMemoryGroupFactory.class, TestGroupFactory.class); factory.getInstance(); ArgumentCaptor<InMemoryBackendGroupFactoryContext> context = ArgumentCaptor.forClass(InMemoryBackendGroupFactoryContext.class); verify(backendConstructor).create(context.capture(), any(), any()); assertThat(context.getValue().getVisitor(TestGroupFactory.class)).isNotNull(); }
@Override public BusinessParametersBackend<InMemoryQuery<?>> getInstance() { return getInstance(DATA_STORE_SUPPLIER.get()); }
InMemoryBackendServiceFactory implements BusinessParametersBackendFactory { @Override public BusinessParametersBackend<InMemoryQuery<?>> getInstance() { return getInstance(DATA_STORE_SUPPLIER.get()); } }
InMemoryBackendServiceFactory implements BusinessParametersBackendFactory { @Override public BusinessParametersBackend<InMemoryQuery<?>> getInstance() { return getInstance(DATA_STORE_SUPPLIER.get()); }  }
InMemoryBackendServiceFactory implements BusinessParametersBackendFactory { @Override public BusinessParametersBackend<InMemoryQuery<?>> getInstance() { return getInstance(DATA_STORE_SUPPLIER.get()); }  static synchronized void setDataStoreSupplier(Supplier<GroupDataStore> supplier); @Override BusinessParametersBackend<InMemoryQuery<?>> getInstance(); }
InMemoryBackendServiceFactory implements BusinessParametersBackendFactory { @Override public BusinessParametersBackend<InMemoryQuery<?>> getInstance() { return getInstance(DATA_STORE_SUPPLIER.get()); }  static synchronized void setDataStoreSupplier(Supplier<GroupDataStore> supplier); @Override BusinessParametersBackend<InMemoryQuery<?>> getInstance();  }