@Test
@Transactional
public void shouldSupportManagedSetRemoveOfRelationshipEntities() {
Person p = persistedPerson("Michael", 35);
Person p2 = persistedPerson("David", 25);
final Friendship friendship = p.knows(p2);
final Set<Friendship> friends = p.getFriendshipsSet();
assertEquals(1, friends.size());
assertEquals(friendship,IteratorUtil.first(friends));
friends.remove(friendship);
assertEquals(0, IteratorUtil.count(friends));