@Test
  public void testQueryEvictedDataDeserializable() {
    server1.invoke(() -> createReplicatedRegionWithEviction(REGION_EVICTION_NAME));
    locator.waitUntilRegionIsReadyOnExactlyThisManyServers(REGION_EVICTION_NAME_PATH, 1);
    server1.invoke(() -> setUpDeserializableDataForRegion(REGION_EVICTION_NAME_PATH));

    String query = "query --query=\"" +
        "select Value from " + REGION_EVICTION_NAME_PATH + "\" --interactive=false";


    TabularResultModel resultModel = gfsh.executeAndAssertThat(query).statusIsSuccess()
        .hasTableSection().hasRowSize(10).getActual();
    assertThat(resultModel.getValuesInColumn("Value").size()).isGreaterThan(0);

  }
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