daoUtils.verify(); daoUtils.reset();
    public void testfindCGCIHiearchies(){        /*         * CGCI Hierachies          */                // Arguments        Integer id = new Integer(1);        Set ids = new HashSet();        ids.add(id);                // Result        Image img = new Image();        img.setImageId(id);        img.setClassifications(new HashSet());        Classification cla1 = new Classification();        img.getClassifications().add(cla1);        Category c1 = new Category();        CategoryGroup cg1 = new CategoryGroup();        cla1.setCategory(c1);        c1.setCategoryGroup(cg1);        List result = new ArrayList();        result.add(img);        // Run        containerDao.expects(once()).method("findCGCIHierarchies").with(same(ids)).will(returnValue(result));        Set set = manager.findCGCIHierarchies(ids);        List list = new ArrayList(set);        assertTrue("There should only be one category group in the result not "+list.size(),list.size()==1);        assertTrue("And that one c. group should be this one not "+list.get(0),list.get(0)==cg1);        containerDao.verify();        containerDao.reset();                    }