@Test
    void testBadStruct() throws IOException {
        try {
            ApplicationBuilder.buildFromFile("src/test/examples/badstruct.sd");
            fail("Should throw exception.");
        } catch (IllegalArgumentException | ParseException expected) {
            System.err.println("As expected, with message: " + expected.getMessage());
            // success
        }
    }
Tests importing of document containing array type fields

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