@Test
    public void testSerialization() {
        assertSerialization("tensor(x{}):{}");
        assertSerialization("tensor(x{}):{{x:0}:2.0}");
        assertSerialization("tensor(dimX{},dimY{}):{{dimX:labelA,dimY:labelB}:2.0,{dimY:labelC,dimX:labelD}:3.0}");
        assertSerialization("tensor(x{},y{}):{{x:0,y:1}:2.0}");
        assertSerialization("tensor(x{},y{}):{{x:0,y:1}:2.0,{x:1,y:4}:3.0}");
        assertSerialization("tensor(x{},y{},z{}):{{y:0,x:0,z:3}:2.0}");
        assertSerialization("tensor(x{},y{},z{}):{{y:0,x:0,z:3}:2.0,{y:1,x:0,z:6}:3.0}");
    }
Tests for the sparse binary format.

@author geirst
vespajlib/src/test/java/com/yahoo/tensor/serialization/SparseBinaryFormatTestCase.java