@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());
Document document = new Document();
Document ndocument;
document.setId(1L);
document.setName(UPDATED_DOCUMENT_NAME);
document.setVersion(1);
ndocument = documentDAO.save(document);
assertNotNull(ndocument);
assertEquals(ndocument.getName(), document.getName());
entityManager.getTransaction().commit();
DatabaseAssertionMode.NON_STRICT.getDatabaseAssertion().assertEquals(expectedDataSet,
connection.createDataSet(expectedDataSet.getTableNames()));
connection.close();
} catch (DatabaseUnitException e) {