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

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