}
public void runGroup(DBCollection<Map<String, Object>> collection) {
HashMap<String, Double> initialValues = new HashMap<String, Double>();
initialValues.put("foo", 0D);
List<Map<String, Object>> result = collection.query(new Group(new String[] { "foo" }, initialValues, "function(obj, prev){ prev.csum=5; }"), new Query());
specify(result.get(0).get("csum"), does.equal(5D));
}