@Test
public void testNotExpression() throws Exception {

  BoolValueProperty srcValue = new BoolValueProperty(true);
  BoolValueProperty destValue = new BoolValueProperty();
  BindingsManager bindings = new BindingsManager(BatchInvoker.INVOKE_IMMEDIATELY_STRATEGY);
  bindings.bind(destValue, BooleanExpressions.not(srcValue));
  assertThat(srcValue.get()).isTrue();
  assertThat(destValue.get()).isFalse();
  srcValue.set(false);
  assertThat(srcValue.get()).isFalse();
  assertThat(destValue.get()).isTrue();
}