for (int i = 0; i < NUM_ELEMENTS; i++) {
final int nextValue = rnd.nextInt(DISTR_RANGE) + DISTR_MIN;
integer.setValue(nextValue);
rec.setField(0, integer);
final int[] channels = oe.selectChannels(rec, NUM_BUCKETS);
if (channels.length != 1) {
Assert.fail("Resulting channels array has more than one channel.");
}
final int bucket = channels[0];