@Test
    public void testEncodeMappedSingleDimensionShortForm() {
        assertEncodeShortForm("tensor(x{}):{}",
                              "{\"type\":\"tensor(x{})\",\"cells\":{}}");
        assertEncodeShortForm("tensor(x{}):{a:1,b:2}",
                              "{\"type\":\"tensor(x{})\",\"cells\":{\"a\":1.0,\"b\":2.0}}");
        // Multiple mapped dimensions: no short form available
        assertEncodeShortForm("tensor(x{},y{}):{{x:a,y:b}:1,{x:c,y:d}:2}",
                              "{\"type\":\"tensor(x{},y{})\",\"cells\":[{\"address\":{\"x\":\"a\",\"y\":\"b\"},\"value\":1.0},{\"address\":{\"x\":\"c\",\"y\":\"d\"},\"value\":2.0}]}");
    }
Tests parsing of various tensor values set at the root, i.e. no 'cells', 'blocks' or 'values'
vespajlib/src/test/java/com/yahoo/tensor/serialization/JsonFormatTestCase.java