private Book newBookConcrete(int i) {
        Book book = new Book(new DocumentId("id:book:book::"+i));
        book.setAuthor("Melville");
        Date date = new Date().setExacttime(99L);
        book.setTitleSpanTrees(new HashMap<>());
        SpanTree t = new SpanTree().annotate(date);
        book.titleSpanTrees().put(t.getName(), t);
        book.setTitle("Moby Dick");
        book.setYear(1851);
        book.setMystruct(new Ss1().setSs01(new Ss0().setS0("My s0").setD0(99d)).setS1("My s1").setL1(89L));//.setAl1(myAs1));
        Map<Integer, Integer> wsInteger = new HashMap<>();
        wsInteger.put(56, 55);
        wsInteger.put(57, 54);
        book.setMywsinteger(wsInteger);

        Array<IntegerFieldValue> intArr1 = new Array<>(DataType.getArray(DataType.INT));
        intArr1.add(new IntegerFieldValue(1));
        intArr1.add(new IntegerFieldValue(2));
        intArr1.add(new IntegerFieldValue(3));
        Array intArr1Arr = new Array(DataType.getArray(intArr1.getDataType()));
        intArr1Arr.add(intArr1);
        Array intArr1ArrArr = new Array(DataType.getArray(intArr1Arr.getDataType()));
        intArr1ArrArr.add(intArr1Arr);
        book.setMytriplearray(intArr1ArrArr);

        return book;
    }
Tests vespa-documentgen-plugin

@author vegardh
documentgen-test/src/test/java/com/yahoo/vespa/config/DocumentGenPluginTest.java