@Test
public void testFooWithBars() throws Exception {

	Foo foo = new Foo();
	foo.barP.set(new Bar());
	foo.barsP.set(Arrays.asList(new Bar(), new Bar()));
	repository.insert(foo);
	assertEquals(1, repository.query(new Foo()).count());
	assertEquals(3, repository.query(new Bar()).count());
}