img = (Image) q.getById(Image.class,img.getId().longValue());
img = (Image) iQuery.getById(Image.class,img.getId().longValue());
    public void testNowOnToSavingAndDeleting() throws Exception    {        imgData = simpleImageData();        img = (Image) reverse.map(imgData);                assertNull("Image doesn't have an id.",img.getId());        img = (Image) psrv.createDataObject(img,null);        assertNotNull("Presto change-o, now it does.",img.getId());        psrv.deleteDataObject(img,null);                img = (Image) q.getById(Image.class,img.getId().longValue());        assertNull("we should have deleted it ",img);            }