Image img = (Image) reverse.map(imgData);  img = (Image) psrv.createDataObject(img,null); assertNotNull("We should get something back",img); assertNotNull("Should have an id",img.getId());  Image img2 = (Image) q.getById(Image.class,img.getId()); assertNotNull("And we should be able to find it again.",img2);
    public void testNowLetsTryToSaveSomething() throws Exception    {        // prepare data        ImageData imgData = new ImageData();        imgData.setName("My test image");        imgData.setDescription("My test description");                // convert it        // FIXME mapper.reverse            }