@Test
public void testFoo() {

	Iterator<Foo> foos = repository.query(new Foo()).list().iterator();
	assertTrue(foos.hasNext());
	assertTrue(foos.next().getClass() == Foo.class);
	assertTrue(foos.hasNext());
	assertTrue(foos.next().getClass() == FooEx.class);
	assertFalse(foos.hasNext());
}