@Test
public void columnExistsButWrongType() {

  Table table = Table.create("myTale", DateColumn.create("col1", new LocalDate[] {null}));
  Throwable thrown =
      assertThrows(
          IllegalArgumentException.class, () -> table.forEach(r -> r.setTime("col1", null)));
  assertEquals(
      "Column col1 is of type LOCAL_DATE and cannot be cast to LOCAL_TIME."
          + " Use the method for LOCAL_DATE.",
      thrown.getMessage());
}