@Test
    public void testOneDimensionalBuilding() {
        TensorType type = new TensorType.Builder().mapped("x").build();
        Tensor tensor = Tensor.Builder.of(type).
                cell().label("x", "0").value(1).
                cell().label("x", "1").value(2).build();
        assertEquals(Set.of("x"), tensor.type().dimensionNames());
        assertEquals("tensor(x{}):{0:1.0, 1:2.0}", tensor.toString());
    }
Basic tensor tests. Tensor operations are tested in EvaluationTestCase

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