@Override
        public void run2() throws CacheException {
          await()
              .until(() -> CacheClientProxy.testHook != null
                  && (((RejectClientReconnectTestHook) CacheClientProxy.testHook)
                      .wasClientRejected()));
          assertThat(
              ((RejectClientReconnectTestHook) CacheClientProxy.testHook).wasClientRejected())
                  .isTrue();
        }
Tests situation where a client is trying to reconnect while a cq is being drained. The client
should be rejected until no cqs are currently being drained
geode-cq/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/DurableClientCQDUnitTest.java