ObjectStoreSession oss = os.beginSession();
oss.store(new Foo("Fred Flintstone")).now();
oss.store(new Foo("Barney Rubble")).now();
List<Foo> foos = Lists.newArrayList(oss.find(Foo.class).now());
assertEquals(2, foos.size());
DatastoreService service = DatastoreServiceFactory.getDatastoreService();
List<Entity> entities = Lists.newArrayList(service.prepare(new Query("Foo")).asIterable());
assertEquals(2, entities.size());