List result = cdao.findPDIHierarchies(set); assertTrue("Should have found all the images but Zero", result.size()==set.size()+1);
List tmp = cdao.findPDIHierarchies(set); Set result = new HashSet(tmp); assertTrue("Should have found all the images but Zero but found "+result.size(), result.size()+1==set.size());
    public void testFindPDIHierarchies(){        Set set = getSetFromInt(new int[]{1,5,6,7,8,9,0});        List result = cdao.findPDIHierarchies(set);        assertTrue("Should have found all the images but Zero", result.size()==set.size()+1);        for (Iterator i = result.iterator(); i.hasNext();) {            Image img = (Image) i.next();            assertTrue("Fully initialized",Hibernate.isInitialized(img.getDatasets()));        }            }