@Test
    public void require_that_arrays_are_appended_on_merge() {
        ArraytypesConfig.Builder b1 = createArrayBuilder(new String[] { "foo", "bar" });
        ArraytypesConfig.Builder b2 = createArrayBuilder(new String[] { "baz", "bim" });

        ConfigInstanceUtil.setValues(b1, b2);
        ArraytypesConfig c1 = new ArraytypesConfig(b1);
        assertThat(c1.stringarr().size(), is(4));
        assertThat(c1.stringarr(0), is("foo"));
        assertThat(c1.stringarr(1), is("bar"));
        assertThat(c1.stringarr(2), is("baz"));
        assertThat(c1.stringarr(3), is("bim"));

        ArraytypesConfig c2 = new ArraytypesConfig(b2);
        assertThat(c2.stringarr(0), is("baz"));
        assertThat(c2.stringarr(1), is("bim"));
    }
SEO keywords: test override() on builders. overrideTest, testOverride

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