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

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