@Test
public void testFindFirstValidInput() {

  byte[][] inputs = new byte[numInputs][];
  inputs[8] = ByteBuffer.allocate(4).putInt(1234).array();
  byte[] firstValidInput = CoderUtil.findFirstValidInput(inputs);
  assertEquals(firstValidInput, inputs[8]);
}