void registerDurableCq(final String cqName) {
    // Durable client registers durable cq on server
    durableClientVM.invoke("Register Cq", new CacheSerializableRunnable() {
      @Override
      public void run2() throws CacheException {
        // Get the region
        Region<Object, Object> region = getCache().getRegion(regionName);
        assertThat(region).isNotNull();

        // Create CQ Attributes.
        CqAttributesFactory cqAf = new CqAttributesFactory();

        // Initialize and set CqListener.
        CqListener[] cqListeners = {new ControlCqListener()};
        cqAf.initCqListeners(cqListeners);
        CqAttributes cqa = cqAf.create();

        // Create cq's
        // Get the query service for the Pool
        QueryService queryService = getPool().getQueryService();

        try {
          CqQuery query =
              queryService.newCq(cqName, "Select * from " + SEPARATOR + regionName, cqa, true);
          query.execute();
        } catch (CqExistsException | CqException e) {
          fail("Failed due to ", e);
        } catch (RegionNotFoundException e) {
          fail("Could not find specified region:" + regionName + ":", e);
        }
      }
    });
  }
This test method is disabled because it is failing periodically and causing cruise control
failures See bug #47060 (test seems to be enabled now!)
geode-cq/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/DurableClientCQDUnitTest.java