@Test
    public void tensor_remove_update_with_stray_dimension_throws() {
        illegalTensorRemoveUpdate("Error in 'sparse_tensor': tensor(x{},y{}) does not contain dimension 'foo'",
                                  "sparse_tensor",
                                  """
                                  {
                                    "addresses": [
                                      { "x": "a", "foo": "b" }
                                    ]
                                  }""");

        illegalTensorRemoveUpdate("Error in 'sparse_tensor': tensor(x{}) does not contain dimension 'foo'",
                                  "sparse_tensor",
                                  """
                                  {
                                    "addresses": [
                                      { "x": "c" },
                                      { "x": "a", "foo": "b" }
                                    ]
                                  }""");
    }
Tests parsing of various tensor values set at the root, i.e. no 'cells', 'blocks' or 'values'
document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java