private void addTypeFields(QueryProfileType type, QueryProfileTypeRegistry registry) {
        type.addField(new FieldDescription("myString", FieldType.fromString("string", registry)), registry);
        type.addField(new FieldDescription("myInteger", FieldType.fromString("integer", registry),"int"), registry);
        type.addField(new FieldDescription("myLong", FieldType.fromString("long", registry)), registry);
        type.addField(new FieldDescription("myFloat", FieldType.fromString("float", registry)), registry);
        type.addField(new FieldDescription("myDouble", FieldType.fromString("double", registry)), registry);
        type.addField(new FieldDescription("myBoolean", FieldType.fromString("boolean", registry)), registry);
        type.addField(new FieldDescription("myBoolean", FieldType.fromString("boolean", registry)), registry);
        type.addField(new FieldDescription("ranking.features.query(myTensor1)", FieldType.fromString("tensor(a{},b{})", registry)), registry);
        type.addField(new FieldDescription("ranking.features.query(myTensor2)", FieldType.fromString("tensor(x[2],y[2])", registry)), registry);
        type.addField(new FieldDescription("ranking.features.query(myTensor3)", FieldType.fromString("tensor<float>(x{})",registry)), registry);
        type.addField(new FieldDescription("ranking.features.query(myTensor4)", FieldType.fromString("tensor<float>(x[5])",registry)), registry);
        type.addField(new FieldDescription("myQuery", FieldType.fromString("query", registry)), registry);
        type.addField(new FieldDescription("myQueryProfile", FieldType.fromString("query-profile", registry),"qp"), registry);
    }
Tests query profiles with/and types

@author bratseth
container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java