}
}
public void test2() {
try {
NumArraySummation nas = new NumArraySummation();
long[] la = {1l, 2l, 3l};
nas.collect(new Value(NumArraySummation.longArrayToBytes(la)));
long[] la2 = {3l, 2l, 1l, 0l};
nas.collect(new Value(NumArraySummation.longArrayToBytes(la2)));
la = NumArraySummation.bytesToLongArray(nas.aggregate().get());
assertTrue(la.length == 4);
for (int i = 0; i < la.length - 1; i++) {
assertTrue(la[i] == 4);
}
assertTrue(la[la.length - 1] == 0);
nas.reset();
la = NumArraySummation.bytesToLongArray(nas.aggregate().get());
assertTrue(la.length == 0);
} catch (Exception e) {
e.printStackTrace();
assertTrue(false);
}