Project p = new Project(); p.setName("ui"); Dataset d = new Dataset(); d.setName("ui"); Image i = new Image(); i.setName("ui"); p.linkDataset( d ); d.linkImage( i );  p = iPojos.createDataObject( p, null );
    public void test_unloaded_ds_in_ui() throws Exception    {//        Project p = new Project(); p.setName("ui");//        Dataset d = new Dataset(); d.setName("ui");//        Image i = new Image(); i.setName("ui");//        p.linkDataset( d );//        d.linkImage( i );//        //        ProjectData pd = new ProjectData( (Project)//                iPojos.createDataObject( p, null )//                );                PojoOptions po = new PojoOptions().exp( new Long( 0L ) );        ProjectData pd_test = new ProjectData( (Project)                iPojos.loadContainerHierarchy( Project.class, null, po.map())                .iterator().next()                );        DatasetData dd_test = (DatasetData) pd_test.getDatasets().iterator().next();        pd_test.setDescription("new value:ui");                iPojos.updateDataObject( pd_test.asIObject(), null );                try {             dd_test.getName();            fail(" this should blow up ");        } catch (Exception e ){ // TODO which exception?            // good.        }            }