@Test
public void testGetValidIndexes() {

  byte[][] inputs = new byte[numInputs][];
  inputs[0] = new byte[chunkSize];
  inputs[1] = new byte[chunkSize];
  inputs[7] = new byte[chunkSize];
  inputs[8] = new byte[chunkSize];
  int[] validIndexes = CoderUtil.getValidIndexes(inputs);
  assertEquals(4, validIndexes.length);
  // Check valid indexes
  assertEquals(0, validIndexes[0]);
  assertEquals(1, validIndexes[1]);
  assertEquals(7, validIndexes[2]);
  assertEquals(8, validIndexes[3]);
}