@Test
    void testArrayImporting() throws IOException, ParseException {
        Schema schema = ApplicationBuilder.buildFromFile("src/test/examples/arrays.sd");

        SDField tags = (SDField) schema.getDocument().getField("tags");
        assertEquals(DataType.STRING, ((CollectionDataType) tags.getDataType()).getNestedType());

        SDField ratings = (SDField) schema.getDocument().getField("ratings");
        assertTrue(ratings.getDataType() instanceof ArrayDataType);
        assertEquals(DataType.INT, ((ArrayDataType) ratings.getDataType()).getNestedType());
    }
tests importing of document containing array type fields

@author bratseth
config-model/src/test/java/com/yahoo/schema/ArraysTestCase.java