@Override
    public void hook(int spot) throws RuntimeException {
      if (spot == 12) {
        Runnable r = () -> {
          Cache cache = CacheUtils.getCache();
          cache.getLogger().fine("Removing Index in LikeQueryIndexTestHook");
          QueryService qs = cache.getQueryService();
          qs.removeIndex(qs.getIndex(cache.getRegion("exampleRegion"), "status"));
        };
        th = new Thread(r);
        th.start();
      }
    }
Test to verify that query executes using index even when the index is being removed during the
execution
geode-core/src/integrationTest/java/org/apache/geode/cache/query/functional/LikePredicateJUnitTest.java