assertEquals(count, service.prepare(query).countEntities(fetchOption));
}
private void checkQueryType(String property, Class<?> type) {
Query query = new Query(kindName, rootKey);
query.addProjection(new PropertyProjection(property, type));
String sql = "SELECT " + property + " FROM " + kindName + " WHERE __ancestor__ is " + rootKey;
assertEquals(sql.toLowerCase(), query.toString().toLowerCase());
List<Entity> results = service.prepare(query).asList(fetchOption);
for (Entity e : results) {
assertEquals(1, e.getProperties().size());