@Test
    public void testSerialization() {
        assertSerialization("{-5.37}");
        assertSerialization("tensor(x[]):{{x:0}:2.0}");
        assertSerialization("tensor(x[],y[]):{{x:0,y:0}:2.0}");
        assertSerialization("tensor(x[],y[]):{{x:0,y:0}:2.0, {x:0,y:1}:3.0, {x:1,y:0}:4.0, {x:1,y:1}:5.0}");
        assertSerialization("tensor(x[1],y[2],z[3]):{{y:0,x:0,z:0}:2.0}");
    }
Tests for the dense binary format.

@author bratseth
vespajlib/src/test/java/com/yahoo/tensor/serialization/DenseBinaryFormatTestCase.java