@Test
    public void requireThatDefaultSerializationFormatDoesNotChange() {
        byte[] encodedTensor = new byte[]{2, // binary format type
                                          2, // dimension count
                                          2, (byte) 'x', (byte) 'y', 2, // dimension xy with size
                                          1, (byte) 'z', 1, // dimension z with size
                                          64, 0, 0, 0, 0, 0, 0, 0, // value 1
                                          64, 8, 0, 0, 0, 0, 0, 0  // value 2
        };
        assertEquals(Arrays.toString(encodedTensor),
                     Arrays.toString(TypedBinaryFormat.encode(Tensor.from("tensor(xy[],z[]):{{xy:0,z:0}:2.0,{xy:1,z:0}:3.0}"))));
    }
Tests for the dense binary format.

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