@Test
public void testAddToOneToManyRelationshipOutsideOfTransaction() {
Person michael = persistedPerson("Michael", 35);
Group group = new Group().persist();
group.getPersons().add(michael);
group = group.persist();
Collection<Person> personsFromGet = group.getPersons();
assertEquals(new HashSet<Person>(Arrays.asList(michael)), personsFromGet);
}
@Test