@Test
  public void testBoundaryChar() {
    String s1 = "!";
    String s2 = "9";
    String s3 = "A";
    String s4 = "[";
    String s5 = "a";
    String s6 = "{";
    String s7 = String.valueOf((char) 255);
    assertThat(s2.compareTo(s1) > 0).isTrue();
    assertThat(s3.compareTo(s2) > 0).isTrue();
    assertThat(s4.compareTo(s3) > 0).isTrue();
    assertThat(s5.compareTo(s4) > 0).isTrue();
    assertThat(s6.compareTo(s5) > 0).isTrue();
    assertThat(s7.compareTo(s6) > 0).isTrue();
  }
This test is no more valid. From 6.6 Like is enhanced to support special chars (% and _) at any
place in the string pattern. With this the Like predicate is not transformed to
compiled-junction with > and < operator.
geode-core/src/test/java/org/apache/geode/cache/query/internal/QCompilerTest.java