@Test
public void testBadFilename() throws Exception {

  String outOfBounds = String.format("data-%d.json", 1L + Integer.MAX_VALUE);
  fileSystem.createNewFile(new Path(shardPath.getParent(), outOfBounds));
  assertThrows(IndexOutOfBoundsException.class, () -> recordReader.nextKeyValue());
}