@Test
  public void testStringResultReturnedAsCommandResult() throws InterruptedException {
    gfsh.clear();
    gfsh.executeCommand("list members");

    LinkedBlockingQueue<Object> headlessQueue = gfsh.getQueue();
    headlessQueue.clear();
    headlessQueue.put("ERROR RESULT");
    CommandResult result = gfsh.getResult();
    assertNotNull(result);
    assertSame(result.getStatus(), Result.Status.ERROR);
    System.out.println(result);
  }
TODO : Add more tests for error-catch, different type of results etc
geode-gfsh/src/integrationTest/java/org/apache/geode/management/internal/cli/HeadlessGfshIntegrationTest.java