@Test
    public void testTwoMappedOneIndexedBuilding() {
        TensorType type = new TensorType.Builder().mapped("x").indexed("y").mapped("z").build();
        Tensor tensor = Tensor.Builder.of(type).
                cell().label("x", "x1").label("y", 0).label("z","z1").value(1).
                cell().label("x", "x1").label("y", 0).label("z","z2").value(2).
                cell().label("x", "x1").label("y", 1).label("z","z1").value(3).
                cell().label("x", "x1").label("y", 1).label("z","z2").value(4).
                cell().label("x", "x1").label("y", 2).label("z","z1").value(5).
                cell().label("x", "x1").label("y", 2).label("z","z2").value(6).
                cell().label("x", "x2").label("y", 0).label("z","z1").value(11).
                cell().label("x", "x2").label("y", 0).label("z","z2").value(12).
                cell().label("x", "x2").label("y", 1).label("z","z1").value(13).
                cell().label("x", "x2").label("y", 1).label("z","z2").value(14).
                cell().label("x", "x2").label("y", 2).label("z","z1").value(15).
                cell().label("x", "x2").label("y", 2).label("z","z2").value(16).
                build();
        assertEquals(Set.of("x", "y", "z"), tensor.type().dimensionNames());
        assertEquals("tensor(x{},y[3],z{}):{{x:x1,y:0,z:z1}:1.0, {x:x1,y:0,z:z2}:2.0, {x:x1,y:1,z:z1}:3.0, " +
                     "{x:x1,y:1,z:z2}:4.0, {x:x1,y:2,z:z1}:5.0, {x:x1,y:2,z:z2}:6.0, {x:x2,y:0,z:z1}:11.0, " +
                     "{x:x2,y:0,z:z2}:12.0, {x:x2,y:1,z:z1}:13.0, {x:x2,y:1,z:z2}:14.0, {x:x2,y:2,z:z1}:15.0, {x:x2,y:2,z:z2}:16.0}",
                tensor.toString());
    }
Basic mixed tensor tests. Tensor operations are tested in EvaluationTestCase

@author lesters
vespajlib/src/test/java/com/yahoo/tensor/MixedTensorTestCase.java