@Test
  public void testWithGfshEnvironmentVariables() {
    gfsh.executeAndAssertThat("set variable --name=DATA_REGION --value=" + REGION_NAME_PATH)
        .statusIsSuccess();
    gfsh.executeAndAssertThat("set variable --name=PORTFOLIO_ID --value=3")
        .statusIsSuccess();
    gfsh.executeAndAssertThat("set variable --name=STATUS --value=inactive")
        .statusIsSuccess();

    String query = "query --query=\"" +
        "select ID , status , createTime , pk, floatMinValue " +
        "from ${DATA_REGION} " +
        "where ID <= ${PORTFOLIO_ID} and status=${STATUS}" + "\" --interactive=false";

    gfsh.executeAndAssertThat(query)
        .statusIsSuccess();
  }
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