assertTrue(instanceConstraintViolationsList.toString(),
instanceConstraintViolationsList.size() == 0);
try {
MaterialCategory mc = materialCategoryDAO.findByCode("MC-B");
assertTrue(mc.getMaterials().size() == 1);
assertTrue(mc.getSubcategories().size() == 1);
assertTrue(mc.getName().equalsIgnoreCase("MC-B"));
materialCategoryDAO.flush();
sessionFactory.getCurrentSession().evict(mc);
} catch (InstanceNotFoundException e) {
fail();
}