@DatabaseTearDown(value = UPDATE_DATASET, type = DatabaseOperation.DELETE_ALL)
public void testSave2() throws Exception {
try {
DatabaseConnection connection = new DatabaseConnection(dataSource.getConnection());
IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(this.getClass().getResource(UPDATE_DATASET).openStream());
Alert alert = new Alert();
Alert nalert;
alert.setId(1L);
alert.setStartTime(DEFAULT_DATE);
alert.setEndTime(DEFAULT_DATE);
alert.setMonday(true);
alert.setTuesday(true);
alert.setWednesday(true);
alert.setThursday(true);
alert.setFriday(true);
alert.setSaturday(false);
alert.setSunday(false);
alert.setVersion(1);
nalert = alertDAO.save(alert);
assertEquals(alert.getStartTime(), nalert.getStartTime());
assertEquals(alert.getEndTime(), nalert.getEndTime());
assertEquals(alert.getMonday(), nalert.getMonday());
assertEquals(alert.getTuesday(), nalert.getTuesday());
assertEquals(alert.getWednesday(), nalert.getWednesday());
assertEquals(alert.getThursday(), nalert.getThursday());
assertEquals(alert.getFriday(), nalert.getFriday());
assertEquals(alert.getSaturday(), nalert.getSaturday());
assertEquals(alert.getSunday(), nalert.getSunday());
entityManager.getTransaction().commit();
DatabaseAssertionMode.NON_STRICT.getDatabaseAssertion().assertEquals(expectedDataSet,
connection.createDataSet(expectedDataSet.getTableNames()));
connection.close();
} catch (DatabaseUnitException e) {