}
@Test
@Transactional
public void deleteCountryCode() {
CountryCode entity = getCountryCodeDAO().getNewCountryCode();
entity.setCcdCode2("XX");
entity.setCcdName("testcode");
getCountryCodeDAO().saveOrUpdate(entity);
List<CountryCode> list = getCountryCodeDAO().getAllCountryCodes();
for (CountryCode obj : list) {
System.out.println(obj.getId() + " / " + obj.getCcdName());
}
CountryCode obj2 = getCountryCodeDAO().getCountryCodeByCode2("xx");
Assert.assertEquals("Not the expected result", "UNROUTABLE ADDRESS", obj2.getCcdName());
getCountryCodeDAO().delete(entity);
}