@Test
    public void testOneMappedOneIndexedBuilding() {
        TensorType type = new TensorType.Builder().mapped("x").indexed("y", 3).build();
        Tensor tensor = MixedTensor.Builder.of(type).
                cell().label("x", "1").label("y", 0).value(1).
                cell().label("x", "1").label("y", 1).value(2).
                // {x:1,y:2} should be 0.0 and non NaN since we specify indexed size
                cell().label("x", "2").label("y", 0).value(4).
                cell().label("x", "2").label("y", 1).value(5).
                cell().label("x", "2").label("y", 2).value(6).
                build();
        assertEquals(Set.of("x", "y"), tensor.type().dimensionNames());
        assertEquals("tensor(x{},y[3]):{1:[1.0, 2.0, 0.0], 2:[4.0, 5.0, 6.0]}",
                tensor.toString());
    }
Basic mixed tensor tests. Tensor operations are tested in EvaluationTestCase

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