private static void verifyWithLabel(int dimensions) {
        int [] indexes = new int[dimensions];
        Arrays.fill(indexes, 1);
        TensorAddress next = of(indexes);
        for (int i = 0; i < dimensions; i++) {
            indexes[i] = 3;
            assertEquals(of(indexes), next = next.withLabel(i, 3));
        }
    }
Test for tensor address.

@author baldersheim
vespajlib/src/test/java/com/yahoo/tensor/TensorAddressTestCase.java