### Question:
MpConfigSources { public static ConfigSource create(String name, Map<String, String> theMap) { return new MpMapSource(name, theMap); } private  MpConfigSources(); static ConfigSource create(String name, Map<String, String> theMap); static ConfigSource create(Map<String, String> theMap); static ConfigSource create(Path path); static ConfigSource create(URL url); static ConfigSource create(String name, Path path); static ConfigSource create(Properties properties); static ConfigSource create(String name, Properties properties); static ConfigSource environmentVariables(); static ConfigSource systemProperties(); static List<ConfigSource> classPath(String resource); static List<ConfigSource> classPath(ClassLoader classLoader, String resource); static ConfigSource create(io.helidon.config.spi.ConfigSource helidonConfigSource); static ConfigSource create(Config config);  }### Answer:
@Test void testHelidonMap() { Map<String, String> values = Map.of( "key.first", "first", "key.second", "second" ); org.eclipse.microprofile.config.spi.ConfigSource mpSource = MpConfigSources.create(ConfigSources.create(values).build()); assertThat(mpSource.getValue("key.first"), is("first")); assertThat(mpSource.getValue("key.second"), is("second")); }
@Test void testHelidonParsable() { ParsableImpl helidonSource = new ParsableImpl(); org.eclipse.microprofile.config.spi.ConfigSource mpSource = MpConfigSources.create(helidonSource); assertThat(mpSource.getValue(ParsableImpl.KEY + ".notThere"), nullValue()); assertThat(mpSource.getValue(ParsableImpl.KEY), is(ParsableImpl.VALUE)); assertThat(mpSource.getName(), is(ParsableImpl.DESCRIPTION)); assertThat("init called exactly once", helidonSource.inits.get(), is(1)); assertThat("exists called exactly once", helidonSource.exists.get(), is(1)); }
@Test void testHelidonNode() { NodeImpl helidonSource = new NodeImpl(); org.eclipse.microprofile.config.spi.ConfigSource mpSource = MpConfigSources.create(helidonSource); assertThat(mpSource.getValue(NodeImpl.KEY + ".notThere"), nullValue()); assertThat(mpSource.getValue(NodeImpl.KEY), is(NodeImpl.VALUE)); assertThat(mpSource.getName(), is(NodeImpl.DESCRIPTION)); assertThat("init called exactly once", helidonSource.inits.get(), is(1)); assertThat("exists called exactly once", helidonSource.exists.get(), is(1)); }
@Test void testHelidonLazy() { LazyImpl lazy = new LazyImpl(); org.eclipse.microprofile.config.spi.ConfigSource mpSource = MpConfigSources.create(lazy); assertThat(mpSource.getValue("key-1"), nullValue()); lazy.put("key-1", "value-1"); assertThat(mpSource.getValue("key-1"), is("value-1")); lazy.remove("key-1"); assertThat(mpSource.getValue("key-1"), nullValue()); assertThat(mpSource.getName(), is(LazyImpl.DESCRIPTION)); assertThat("init called exactly once", lazy.inits.get(), is(1)); assertThat("exists called exactly once", lazy.exists.get(), is(1)); }