DataObject article = SessionManager.getSession().create ("mdsql.linkTest.Article");
DataObject article = SessionManager.getSession().create(ARTICLE);
    public void testSetCompoundTypeValidation() {        oid = new OID("mdsql.linkTest.ArticleImageLink");        try {            oid.set("article", new Integer(12));            fail("Initializing Article field w/ " +                 "Integer should have thrown error");        } catch (PersistenceException e) {            // ignore        }        try {            oid.set("article", "12");            fail("Initializing Article field w/ " +                 "String should have thrown error");        } catch (PersistenceException e) {            // ignore        }        DataObject article = SessionManager.getSession().create            ("mdsql.linkTest.Article");        try {            oid.set("image", article);            fail("Initializing Image field w/ " +                 "Article should have thrown error");        } catch (PersistenceException e) {            // ignore        }        // should work        oid.set("article", article);    }