@Test
    public void testTwoMappedTwoIndexedBuilding() {
        TensorType type = new TensorType.Builder().mapped("i").indexed("j", 2).mapped("k").indexed("l", 2).build();
        Tensor tensor = Tensor.Builder.of(type).
                cell().label("i", "a").label("k","c").label("j",0).label("l",0).value(1).
                cell().label("i", "a").label("k","c").label("j",0).label("l",1).value(2).
                cell().label("i", "a").label("k","c").label("j",1).label("l",0).value(3).
                cell().label("i", "a").label("k","c").label("j",1).label("l",1).value(4).
                cell().label("i", "a").label("k","d").label("j",0).label("l",0).value(5).
                cell().label("i", "a").label("k","d").label("j",0).label("l",1).value(6).
                cell().label("i", "a").label("k","d").label("j",1).label("l",0).value(7).
                cell().label("i", "a").label("k","d").label("j",1).label("l",1).value(8).
                cell().label("i", "b").label("k","c").label("j",0).label("l",0).value(9).
                cell().label("i", "b").label("k","c").label("j",0).label("l",1).value(10).
                cell().label("i", "b").label("k","c").label("j",1).label("l",0).value(11).
                cell().label("i", "b").label("k","c").label("j",1).label("l",1).value(12).
                cell().label("i", "b").label("k","d").label("j",0).label("l",0).value(13).
                cell().label("i", "b").label("k","d").label("j",0).label("l",1).value(14).
                cell().label("i", "b").label("k","d").label("j",1).label("l",0).value(15).
                cell().label("i", "b").label("k","d").label("j",1).label("l",1).value(16).
                build();
        assertEquals(Set.of("i", "j", "k", "l"), tensor.type().dimensionNames());
        assertEquals("tensor(i{},j[2],k{},l[2]):{{i:a,j:0,k:c,l:0}:1.0, {i:a,j:0,k:c,l:1}:2.0, " +
                     "{i:a,j:0,k:d,l:0}:5.0, {i:a,j:0,k:d,l:1}:6.0, {i:a,j:1,k:c,l:0}:3.0, {i:a,j:1,k:c,l:1}:4.0, " +
                     "{i:a,j:1,k:d,l:0}:7.0, {i:a,j:1,k:d,l:1}:8.0, {i:b,j:0,k:c,l:0}:9.0, {i:b,j:0,k:c,l:1}:10.0, " +
                     "{i:b,j:0,k:d,l:0}:13.0, {i:b,j:0,k:d,l:1}:14.0, {i:b,j:1,k:c,l:0}:11.0, {i:b,j:1,k:c,l:1}:12.0, "+
                     "{i:b,j:1,k:d,l:0}:15.0, {i:b,j:1,k:d,l:1}: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