@Test
    public void testSerializationFormatIsDecidedByTensorTypeNotImplementationType() {
        Tensor sparse        =      Tensor.Builder.of(TensorType.fromSpec("tensor(x{})"))
                                                  .cell(TensorAddress.ofLabels("key1"), 9.1).build();
        Tensor sparseAsMixed = MixedTensor.Builder.of(TensorType.fromSpec("tensor(x{})"))
                                                  .cell(TensorAddress.ofLabels("key1"), 9.1).build();
        byte[] sparseEncoded        = TypedBinaryFormat.encode(sparse);
        byte[] sparseAsMixedEncoded = TypedBinaryFormat.encode(sparseAsMixed);
        assertEquals(Arrays.toString(sparseEncoded), Arrays.toString(sparseAsMixedEncoded));
    }
Tests for the sparse binary format.

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