flush(); clear();
    public void test_experimenters_groups() throws Exception    {        Experimenter e = new Experimenter();        ExperimenterGroup g_1 = new ExperimenterGroup();        ExperimenterGroup g_2 = new ExperimenterGroup();                e.setOmeName("j.b."+System.currentTimeMillis());        e.setFirstName(" Joe ");        e.setLastName(" Brown ");                g_1.setName( "DEFAULT: "+System.currentTimeMillis());        g_2.setName( "NOTDEFAULT: "+System.currentTimeMillis());                GroupExperimenterMap m_1 = new GroupExperimenterMap();        m_1.setDefaultGroupLink( true );        m_1.link( g_1, e );        GroupExperimenterMap defaultLink =             (GroupExperimenterMap) iUpdate.saveAndReturnObject( m_1 );                GroupExperimenterMap m_2 = new GroupExperimenterMap();        m_2.setDefaultGroupLink( false );        m_2.link( g_2, defaultLink.child() ); // Need the new exp.id here.        GroupExperimenterMap notDefaultLink =             (GroupExperimenterMap) iUpdate.saveAndReturnObject( m_2 );                flush();        clear();                Experimenter test = (Experimenter) iQuery.findByQuery(                " select e from Experimenter e join fetch e.defaultGroupLink " +                " where e.id = :id ",                 new Parameters().addId(defaultLink.child().getId()));        assertNotNull(test.getDefaultGroupLink());        assertTrue(test.getDefaultGroupLink().parent().getName().startsWith("DEFAULT"));            }