@Test
  public void testSimpleQueryWithEscapingCharacter() {
    server1.invoke(() -> setUpDataForRegionWithSpecialCharacters(PARTITIONED_REGION_NAME_PATH));

    String query1 = "query --query=\"" +
        "select * from " + PARTITIONED_REGION_NAME_PATH + " e " +
        "where e LIKE 'value\\$'" + "\"";

    gfsh.executeAndAssertThat(query1)
        .statusIsSuccess()
        .containsOutput("value$");

    String query2 = "query --query=\"" +
        "select * from " + PARTITIONED_REGION_NAME_PATH + " e " +
        "where e LIKE 'value\\%'" + "\"";

    gfsh.executeAndAssertThat(query2)
        .statusIsSuccess()
        .containsOutput("value%");
  }
Override to specify the mechanism used to connect to the Locator.
geode-dunit/src/main/java/org/apache/geode/management/internal/cli/commands/QueryCommandDistributedTestBase.java