flush();
    public void testSaveSimpleObject() throws Exception    {        Pixels p = ObjectFactory.createPixelGraph(null);        p = (Pixels) iUpdate.saveAndReturnObject(p);         flush();        List logs = securitySystem.getCurrentEvent().collectLogs(null);        assertTrue(logs.size() > 0);        Pixels check = (Pixels) iQuery.findByQuery(                "select p from Pixels p " +                " left outer join fetch p.acquisitionContext " +                " left outer join fetch p.channels " +                "  where p.id = :id",new Parameters().addId(p.getId()));                        assertTrue("channel ids differ",equalCollections(p.getChannels(),check.getChannels()));        assertTrue("acq ctx differ",                p.getAcquisitionContext().getId().equals(                        check.getAcquisitionContext().getId()));    }