@Test
  public void creationShouldSucceedForValidQueries() {
    CqAttributes attrs = new CqAttributesFactory().create();
    String[] validQueries = new String[] {
        "SELECT * FROM " + SEPARATOR + "region WHERE id = 1",
        "SELECT * FROM " + SEPARATOR + "region WHERE id <> 1",
        "SELECT * FROM " + SEPARATOR + "region WHERE id < 100",
        "SELECT * FROM " + SEPARATOR + "region WHERE status = 'active'",
        "SELECT * FROM " + SEPARATOR + "region t WHERE t.price > 100.00"
    };

    for (String queryString : validQueries) {
      assertThatCode(() -> queryService.newCq(queryString, attrs))
          .as(String.format("Query creation failed for %s but should have succeeded.", queryString))
          .doesNotThrowAnyException();
    }
  }
Test to make sure CQs that have invalid syntax throw QueryInvalidException, and CQs that have
unsupported CQ features throw UnsupportedOperationException
geode-cq/src/distributedTest/java/org/apache/geode/cache/query/cq/ContinuousQueryValidationDUnitTest.java