DataObject image = ssn.create("linkTest.Image");
DataObject image = ssn.create(getModel() + ".Image");
    public void testImage() {        Session ssn = SessionManager.getSession();        DataObject image = ssn.create("linkTest.Image");        image.set("id", BigInteger.ZERO);        byte[] bytes = "This is the image.".getBytes();        image.set("bytes", bytes);        image.save();        OID oid = new OID("linkTest.Image", BigInteger.ZERO);        image = ssn.retrieve(oid);        assertEquals("incorrect id", BigInteger.ZERO, image.get("id"));        assertTrue("incorrect image",                   Arrays.equals(bytes, (byte[])image.get("bytes")));        image.delete();        assertEquals("image not deleted properly", null, ssn.retrieve(oid));    }