@Test
public void testFold_6() {
ByteVector a = factory().createVector(new byte[] {0, 0, 5, 0, 2, 1});
VectorAccumulator sum = ByteVectors.asSumAccumulator((byte)0);
VectorAccumulator product = ByteVectors.asProductAccumulator((byte)1);
assertEquals(a.fold(sum), 6);
// check whether the accumulator were flushed
assertEquals(a.fold(sum), 6);