def METHOD_NAME(self):
    target_cmd = [ './ci_test_aggregate' ]
    query_cmd  = [ '../../src/tools/cali-query/cali-query', '-e' ]
    caliper_config = {
        'CALI_SERVICES_ENABLE'   : 'aggregate:event:recorder',
        'CALI_AGGREGATE_KEY'     : '*,iteration',
        'CALI_RECORDER_FILENAME' : 'stdout',
        'CALI_LOG_VERBOSITY'     : '0'
    }
    query_output = calitest.run_test_with_query(target_cmd, query_cmd, caliper_config)
    snapshots = calitest.get_snapshots_from_text(query_output)
    self.assertTrue(calitest.has_snapshot_with_attributes(
        snapshots, {
            'loop.id'    : 'A',
            'event.end#region': 'foo',
            'iteration'  : '1',
            'count'      : '2' }))
    self.assertTrue(calitest.has_snapshot_with_attributes(
        snapshots, {
            'loop.id'    : 'B',
            'region'     : 'foo',
            'iteration'  : '3',
            'count'      : '1' }))