@DatabaseSetup(value = UPDATE_DATASET)
@DatabaseTearDown(value = UPDATE_DATASET, type = DatabaseOperation.DELETE)
@Override
public void testFindEntries() throws Exception {
List<ConcreteBusinessPartner> cbps = cbpDAO.findEntries(0, 1);
BusinessPartner bp = new BusinessPartner();
ConcreteBusinessPartner cbp = new ConcreteBusinessPartner();
assertSame(1, cbps.size());
assertNotNull(cbps.get(0));
cbp.setId(1L);
cbp.setAddress(UPDATED_ADDRESS);
cbp.setCountry(COUNTRY);
cbp.setVersion(2);
bp.setId(1L);
bp.setName(BUSINESSPARTNER_NAME);
bp.setVersion(1);
cbp.setBusinessPartner(bp);
assertEquals(cbps.get(0), cbp);
cbps = cbpDAO.findEntries(0, 0);
assertSame(0, cbps.size());
}