@Test
public void groupRows(){

	List<Map<FieldName, Object>> table = new ArrayList<>();
	table.add(createRow("1", "Cracker"));
	table.add(createRow("2", "Cracker"));
	table.add(createRow("1", "Coke"));
	table.add(createRow("3", "Cracker"));
	table.add(createRow("3", "Water"));
	table.add(createRow("3", "Coke"));
	table.add(createRow("2", "Water"));
	table = EvaluatorUtil.groupRows(FieldName.create("transaction"), table);
	checkGroupedRow(table.get(0), "1", Arrays.asList("Cracker", "Coke"));
	checkGroupedRow(table.get(1), "2", Arrays.asList("Cracker", "Water"));
	checkGroupedRow(table.get(2), "3", Arrays.asList("Cracker", "Water", "Coke"));
}