public void testDistinct() throws Exception {
EntityManager em = getOrCreateEntityManager();
em.getTransaction().begin();
em.createQuery( "delete Item" ).executeUpdate();
em.createQuery( "delete Distributor" ).executeUpdate();
Distributor d1 = new Distributor();
d1.setName( "Fnac" );
Distributor d2 = new Distributor();
d2.setName( "Darty" );
Item item = new Item( "Mouse", "Micro$oft mouse" );
item.getDistributors().add( d1 );
item.getDistributors().add( d2 );
em.persist( d1 );
em.persist( d2 );