private StructtypesConfig createStructtypesConfigArray(String[] names, String[] genders) {
        Slime slime = new Slime();
        Cursor array = slime.setObject().setArray("simplearr");
        assertEquals(names.length, genders.length);
        for (int i = 0; i < names.length; i++) {
            addStructFields(array.addObject(), names[i], genders[i], null);
        }
        return new ConfigPayload(slime).toInstance(StructtypesConfig.class, "");
    }
*******************************************************************************************
Helper methods. consider moving out to another class for reuse by merge tester.            *
********************************************************************************************
config/src/test/java/com/yahoo/vespa/config/ConfigPayloadTest.java