d2 = (Dataset) iPojos.createDataObject( d2, null );
    public void test_two_datasets_and_a_project() throws Exception    {        String name = " 2&1 "+System.currentTimeMillis();        Project p = new Project();        p.setName( name );                p = (Project) iPojos.createDataObject( p, null );                Dataset d1 = new Dataset();        d1.setName( name );                Dataset d2 = new Dataset();        d2.setName( name );                ProjectDatasetLink l1 = new ProjectDatasetLink();        ProjectDatasetLink l2 = new ProjectDatasetLink();                l1.setParent( p );        l1.setChild( d1 );                l2.setParent( p );        l2.setChild( d2 );                p.addProjectDatasetLink( l1, true );        p.addProjectDatasetLink( l2, true );                p = (Project) iPojos.updateDataObject( p, null );                Iterator it = p.iterateDatasetLinks();        while ( it.hasNext() )         {            ProjectDatasetLink link = (ProjectDatasetLink) it.next();            if ( link.child().getId().equals( d1.getId() ))            {                l1 = link;                d1 = link.child();            } else if ( link.child().getId().equals( d2.getId() )) {                l2 = link;                d2 = link.child();            } else {                fail( " Links aren't set up propertly");            }                    }                                    d1.setDescription( name );                Dataset test = (Dataset) iPojos.updateDataObject( d1, null );                ProjectDatasetLink link1 =                 (ProjectDatasetLink) iQuery.get(                         ProjectDatasetLink.class, l1.getId().longValue() );                    assertNotNull( link1 );        assertTrue( link1.parent().getId().equals( p.getId()));        assertTrue( link1.child().getId().equals( d1.getId() ));        ProjectDatasetLink link2 =             (ProjectDatasetLink) iQuery.get(                     ProjectDatasetLink.class, l2.getId().longValue() );                assertNotNull( link2 );        assertTrue( link2.parent().getId().equals( p.getId()));        assertTrue( link2.child().getId().equals( d2.getId() ));    }