### Question:
ExcelDataContext extends QueryPostprocessDataContext implements UpdateableDataContext { @Override public UpdateSummary executeUpdate(UpdateScript update) { final ExcelUpdateCallback updateCallback = new ExcelUpdateCallback(this); synchronized (WRITE_LOCK) { try { update.run(updateCallback); } finally { updateCallback.close(); } } return updateCallback.getUpdateSummary(); } ExcelDataContext(File file);  ExcelDataContext(File file, ExcelConfiguration configuration);  ExcelDataContext(Resource resource, ExcelConfiguration configuration); ExcelConfiguration getConfiguration(); Resource getResource(); @Override DataSet materializeMainSchemaTable(Table table, List<Column> columns, int maxRows); @Override UpdateSummary executeUpdate(UpdateScript update);  }### Answer:
@Test(expected = MetaModelException.class) public void testInsertingValueOfInvalidColumnType() { final ExcelDataContext dataContext = new ExcelDataContext(copyOf("src/test/resources/different_datatypes.xls"), new ExcelConfiguration(ExcelConfiguration.DEFAULT_COLUMN_NAME_LINE, null, true, false, true, 19)); final Table table = dataContext.getDefaultSchema().getTable(0); dataContext.executeUpdate(new InsertInto(table).value("INTEGER", "this is not an integer")); }
@Test(expected = MetaModelException.class) public void testUpdatingValueOfInvalidColumnType() { final ExcelDataContext dataContext = new ExcelDataContext(copyOf("src/test/resources/different_datatypes.xls"), new ExcelConfiguration(ExcelConfiguration.DEFAULT_COLUMN_NAME_LINE, null, true, false, true, 19)); final Table table = dataContext.getDefaultSchema().getTable(0); dataContext.executeUpdate(new Update(table).value("INTEGER", 1).value("INTEGER", "this is not an integer")); }