@Test
    public void testParsingOfMixedTensorHexFormat() {
        Tensor.Builder builder = Tensor.Builder.of(TensorType.fromSpec("tensor<bfloat16>(x{},y[3])"));
        builder.cell().label("x", "foo").label("y", 0).value(2.0);
        builder.cell().label("x", "foo").label("y", 1).value(3.0);
        builder.cell().label("x", "foo").label("y", 2).value(4.0);
        builder.cell().label("x", "bar").label("y", 0).value(5.0);
        builder.cell().label("x", "bar").label("y", 1).value(6.0);
        builder.cell().label("x", "bar").label("y", 2).value(7.0);
        Tensor expected = builder.build();
        String mixedJson = """
                           {
                             "blocks":[
                               {"address":{"x":"foo"},"values":"400040404080"},
                               {"address":{"x":"bar"},"values":"40A040C040E0"}
                             ]
                           }
                           """;
        var put = createPutWithTensor(inputJson(mixedJson), "mixed_bfloat16_tensor");
        Tensor tensor = assertTensorField(expected, put, "mixed_bfloat16_tensor");
        mixedJson = """
                           {
                             "blocks":{"foo":"400040404080", "bar":"40A040C040E0"}
                           }
                    """;
        put = createPutWithTensor(inputJson(mixedJson), "mixed_bfloat16_tensor");
        tensor = assertTensorField(expected, put, "mixed_bfloat16_tensor");
    }
Basic test of JSON streams to Vespa document instances.

@author Steinar Knutsen
@author bratseth
document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java