@Test
    public void source_map_is_copied_into_destination_map_on_merge() {
        MaptypesConfig.Builder destination = new MaptypesConfig.Builder()
                .intmap("one", 1)
                .innermap("first", new Innermap.Builder()
                .foo(1));

        MaptypesConfig.Builder source = new MaptypesConfig.Builder()
                .intmap("two", 2)
                .innermap("second", new Innermap.Builder()
                .foo(2));

        ConfigInstanceUtil.setValues(destination, source);

        MaptypesConfig config = new MaptypesConfig(destination);
        assertThat(config.intmap("one"), is(1));
        assertThat(config.intmap("two"), is(2));
        assertThat(config.innermap("first").foo(), is(1));
        assertThat(config.innermap("second").foo(), is(2));
    }
SEO keywords: test override() on builders. overrideTest, testOverride

@author Ulf Lilleengen
config/src/test/java/com/yahoo/vespa/config/ConfigBuilderMergeTest.java