@Test
public void twoWayBindingsAffectEachOther() throws Exception {

  BindingsManager bindings = new BindingsManager(BatchInvoker.INVOKE_IMMEDIATELY_STRATEGY);
  IntValueProperty property1 = new IntValueProperty(10);
  IntValueProperty property2 = new IntValueProperty(20);
  bindings.bindTwoWay(property1, property2);
  assertThat(property1.get()).isEqualTo(20);
  property1.set(30);
  assertThat(property2.get()).isEqualTo(30);
  property2.set(40);
  assertThat(property1.get()).isEqualTo(40);
}