@Test
public void testSetDate() throws IOException {

  Table table = Table.read().csv("../data/bush.csv");
  Row row = new Row(table);
  while (row.hasNext()) {
    row.next();
    LocalDate date = table.dateColumn("date").get(row.getRowNumber());
    // test setDate(index, value)
    LocalDate dateIncrementedByOne = date.plusDays(1);
    row.setDate(0, dateIncrementedByOne);
    assertEquals(dateIncrementedByOne, row.getDate(0));
    // test setDate(key, value)
    LocalDate dateIncrementedByTwo = date.plusDays(2);
    row.setDate("date", dateIncrementedByTwo);
    assertEquals(dateIncrementedByTwo, row.getDate("date"));
  }
}