daoUtils.verify(); daoUtils.reset();
    public void testfindPDIHierarchies(){                /*         * PDI Hierachies          */                // Arguments        Integer id = new Integer(1);        Set ids = new HashSet();        ids.add(id);                // Result        Image img = new Image();        img.setImageId(id);        img.setDatasets(new HashSet());        Dataset ds = new Dataset();        ds.setProjects(new HashSet());        Project prj = new Project();        img.getDatasets().add(ds);        ds.getProjects().add(prj);        List result = new ArrayList();        result.add(img);        // Run        containerDao.expects(once()).method("findPDIHierarchies").with(same(ids)).will(returnValue(result));        Set set = manager.findPDIHierarchies(ids	);        List list = new ArrayList(set);        assertTrue("There should only be one project in the result.",list.size()==1);        assertTrue("And that one project must be this one.",list.get(0)==prj);        containerDao.verify();        containerDao.reset();    }