public Optional<Integer> getTimestampFieldIndex() {
    return timestampFieldIndex;
  }
@Test
  public void shouldGenerateCorrectTimestamp() throws IOException {
    final Generator generator = new Generator(new File("./src/main/resources/pageviews_schema.avro"), new Random());
    final RowGenerator rowGenerator = new RowGenerator(generator, "viewtime", Optional.of("viewtime"));

    assertThat("incorrect timestamp column index.", rowGenerator.getTimestampFieldIndex().get(), is(0));

  }