public static DocsumDefinitionSet createDocsumDefinitionSet() {
        var schema = new Schema.Builder("test");
        var summary = new DocumentSummary.Builder("default");
        summary.add(new DocumentSummary.Field("TOPIC", "string"));
        summary.add(new DocumentSummary.Field("TITLE", "string"));
        summary.add(new DocumentSummary.Field("DYNTEASER", "string"));
        summary.add(new DocumentSummary.Field("EXTINFOSOURCE", "integer"));
        summary.add(new DocumentSummary.Field("LANG1", "integer"));
        summary.add(new DocumentSummary.Field("WORDS", "integer"));
        summary.add(new DocumentSummary.Field("BYTES", "byte"));
        schema.add(summary.build());
        return new DocsumDefinitionSet(schema.build());
    }
Tests docsum class functionality

@author bratseth
container-search/src/test/java/com/yahoo/prelude/fastsearch/DocsumDefinitionTestCase.java