}
@Test
public void should_use_doc_from_supplied_config() throws Exception {
Factory factory = Factory.builder()
.addMachine(new ConsolidatedConfigFactoryMachine())
.addMachine(configSupplierMachine(0, "s1", ConfigElement.of("s1", "doc1", "key1", "val1")))
.addMachine(new SingletonFactoryMachine<>(0, NamedComponent.of(String.class, "key1", "val2")))
.build();
Optional<RestxConfig> configOptional = factory.queryByClass(RestxConfig.class).findOneAsComponent();