}
@Test
@Transactional
public void deleteBranche() {
Branche entity = getBrancheDAO().getNewBranche();
entity.setBraBezeichnung("TEST-BRANCHE");
getBrancheDAO().saveOrUpdate(entity);
List<Branche> list = getBrancheDAO().getAllBranches();
for (Branche obj : list) {
System.out.println(obj.getId() + " / " + obj.getBraBezeichnung());
}
Branche obj2 = getBrancheDAO().getBrancheByName("TEST-BRANCHE");
Assert.assertEquals("Not the expected result", "TEST-BRANCHE", obj2.getBraBezeichnung());
getBrancheDAO().delete(obj2);
}