@Ignore("Not currently working, is an update")
@Test
public void updateBidirectional() throws Exception {
iswf.beginTran();
BidirWithSetParentEntity parent1 = repo.newEntity();
parent1.setName("Parent 1");
BidirWithSetParentEntity parent2 = repo.newEntity();
parent2.setName("Parent 2");
parent1.newChild("Child 1 of Parent 1");
parent1.newChild("Child 2 of Parent 1");
parent1.newChild("Child 3 of Parent 1");
iswf.commitTran();
iswf.bounceSystem();
iswf.beginTran();
parent1 = repo.list().get(0);
parent2 = repo.list().get(0);
Set<BidirWithSetChildEntity> children = parent1.getChildren();
assertThat(children.size(), is(3));
BidirWithSetChildEntity child1 = parent1.getChildren().iterator().next();
child1.moveTo(parent2);
iswf.commitTran();
iswf.bounceSystem();
iswf.beginTran();
parent1 = repo.list().get(0);
parent2 = repo.list().get(0);
children = parent1.getChildren();
assertThat(children.size(), is(2));
children = parent2.getChildren();
assertThat(children.size(), is(1));
iswf.commitTran();
}