@Test
    public void test_that_arrays_are_formatted_to_json() {
        ArraytypesConfig.Builder builder = new ArraytypesConfig.Builder();
        builder.boolarr(true);
        builder.boolarr(false);
        builder.doublearr(1.2);
        builder.doublearr(1.1);
        builder.enumarr(ArraytypesConfig.Enumarr.Enum.VAL1);
        builder.enumarr(ArraytypesConfig.Enumarr.Enum.VAL2);
        builder.intarr(3);
        builder.longarr(4L);
        builder.stringarr("foo");

        final ArraytypesConfig config = new ArraytypesConfig(builder);
        final String expectedJson = inputJson(
                "{",
                "    'boolarr': [",
                "        true,",
                "        false",
                "    ],",
                "    'doublearr': [",
                "        1.2,",
                "        1.1",
                "    ],",
                "    'enumarr': [",
                "        'VAL1',",
                "        'VAL2'",
                "    ],",
                "    'intarr': [",
                "        3",
                "    ],",
                "    'longarr': [",
                "        4",
                "    ],",
                "    'stringarr': [",
                "        'foo'",
                "    ]",
                "}"
        );

        assertConfigEquals(expectedJson, config);
    }
@author Ulf Lilleengen
@author Vegard Sjonfjell
config/src/test/java/com/yahoo/config/subscription/ConfigInstanceSerializerTest.java