function testInsert_NotNullableKeyViolation() {
  var table = env.schema.table('tableE');
  assertEquals(0, env.cache.getCount());

  var journal = createJournal([table]);
  var row1 = table.createRow({'id': 'pk1', 'email': null});
  lf.testing.util.assertThrowsError(
      202,  // Attempted to insert NULL value to non-nullable field {0}.
      journal.insert.bind(journal, table, [row1]));
  journal.rollback();
  assertEquals(0, env.cache.getCount());
}
Tests that not-nullable constraint checks are happening within
Journal#insert.