@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());
ConcreteBusinessPartner cbp = new ConcreteBusinessPartner();
ConcreteBusinessPartner ncbp;
BusinessPartner bp = new BusinessPartner();
cbp.setId(1L);
cbp.setAddress(UPDATED_ADDRESS);
cbp.setCountry(COUNTRY);
bp.setId(1L);
bp.setName(BUSINESSPARTNER_NAME);
bp.setVersion(1);
cbp.setBusinessPartner(bp);
cbp.setVersion(1);
ncbp = cbpDAO.save(cbp);
assertEquals(cbp.getAddress(), ncbp.getAddress());
assertEquals(cbp.getCountry(), ncbp.getCountry());
entityManager.getTransaction().commit();
DatabaseAssertionMode.NON_STRICT.getDatabaseAssertion().assertEquals(expectedDataSet,
connection.createDataSet(expectedDataSet.getTableNames()));
connection.close();
} catch (DatabaseUnitException e) {