1     static boolean test[[TEST]]($type$ a) {
 2         return [[TEST_OP]];
 3     }
 4 
 5     @Test(dataProvider = "$type$TestOpProvider")
 6     static void [[TEST]]$vectorteststype$(IntFunction<$type$[]> fa) {
 7         $type$[] a = fa.apply(SPECIES.length());
 8 
 9         for (int ic = 0; ic < INVOC_COUNT; ic++) {
10             for (int i = 0; i < a.length; i += SPECIES.length()) {
11                 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
12                 VectorMask<$Wideboxtype$> mv = av.test(VectorOperators.[[TEST]]);
13 
14                 // Check results as part of computation.
15                 for (int j = 0; j < SPECIES.length(); j++) {
16                     Assert.assertEquals(mv.laneIsSet(j), test[[TEST]](a[i + j]));
17                 }
18             }
19         }
20     }
21 
22     @Test(dataProvider = "$type$TestOpMaskProvider")
23     static void [[TEST]]Masked$vectorteststype$(IntFunction<$type$[]> fa,
24                                           IntFunction<boolean[]> fm) {
25         $type$[] a = fa.apply(SPECIES.length());
26         boolean[] mask = fm.apply(SPECIES.length());
27         VectorMask<$Wideboxtype$> vmask = VectorMask.fromArray(SPECIES, mask, 0);
28 
29         for (int ic = 0; ic < INVOC_COUNT; ic++) {
30             for (int i = 0; i < a.length; i += SPECIES.length()) {
31                 $abstractvectortype$ av = $abstractvectortype$.fromArray(SPECIES, a, i);
32                 VectorMask<$Wideboxtype$> mv = av.test(VectorOperators.[[TEST]], vmask);
33 
34                 // Check results as part of computation.
35                 for (int j = 0; j < SPECIES.length(); j++) {
36                     Assert.assertEquals(mv.laneIsSet(j),  vmask.laneIsSet(j) && test[[TEST]](a[i + j]));
37                 }
38             }
39         }
40     }