@Test
  public void testSimpleQueryWithUUID() {
    server1.invoke(() -> setUpDataForRegionWithUUID(PARTITIONED_REGION_NAME_PATH));

    String uuidKey = String.valueOf(new UUID(1, 1));

    String query1 = "query --query=\"" +
        "select key from " + PARTITIONED_REGION_NAME_PATH + ".entries" + "\"";

    gfsh.executeAndAssertThat(query1)
        .statusIsSuccess()
        .containsOutput(uuidKey);

    String query2 = "query --query=\"" +
        "select key,value from " + PARTITIONED_REGION_NAME_PATH + ".entries" + "\"";

    gfsh.executeAndAssertThat(query2)
        .statusIsSuccess()
        .containsOutput(uuidKey, "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