@Test
public void columnDoesNotExistOnRow() {

  Table table = Table.create("myTable", IntColumn.create("col1", new int[] {1}));
  Throwable thrown =
      assertThrows(IllegalStateException.class, () -> table.forEach(r -> r.getInt("col2")));
  assertEquals("Column col2 is not present in table myTable", thrown.getMessage());
}