@Test
  public void testGetSimpleParserInputWithJAtTheEnd() throws Exception {
    String[] strings =
        {"command", "--option", "'test value'", "--J", "-Dkey=value", "--J", "-Dkey2=value2"};
    Arrays.stream(strings).forEach(tokens::add);
    assertThat(GfshParser.getSimpleParserInputFromTokens(tokens))
        .isEqualTo("command --option 'test value' --J \"-Dkey=value"
            + GfshParser.J_ARGUMENT_DELIMITER + "-Dkey2=value2\"");
  }
GfshParserJUnitTest - Includes tests to check the parsing and auto-completion capabilities of
{@link GfshParser}
geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/GfshParserJUnitTest.java