public static void generateEventsByClearRegionOperation() throws Exception {
    Connection connection = pool.acquireConnection();
    String regionName = SEPARATOR + REGION_NAME;
    ServerRegionProxy srp = new ServerRegionProxy(regionName, pool);

    for (final EventID eventId : eventIds) {
      srp.clearOnForTestsOnly(connection, eventId, null);
    }
    srp.clearOnForTestsOnly(connection, eventIdForLastKey, null);
  }
Generates events having specific values of threadId and sequenceId, via clearRegionOperation
through connection object

@throws Exception - thrown if any problem occurs in clearRegionOperation
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/EventIdOptimizationDUnitTest.java