@Test
  public void testSanity() {
    Table table = createTableStructure(3, "|", fill(new String[3], "Field"));
    RowGroup rowGroup = table.getLastRowGroup();
    Row row = rowGroup.newRow();
    row
        .newLeftCol("1")
        .newLeftCol("1")
        .newLeftCol("1");

    List<String> result = validateTable(table, true);

    assertThat(result)
        .hasSize(4)
        .containsExactly(
            "",
            "Field0|Field1|Field2",
            "------|------|------",
            "1     |1     |1");
  }
Test Variations table-wide separator true false
geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/result/TableBuilderTest.java