@Test
public void testFooHasNotBar() {

	Foo foo = new Foo();
	Bar bar = new Bar();
	assertEquals(
			1,
			repository.query(foo,
					Where.not(Where.has(foo.barP, bar, Where.any())))
					.count());
}