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

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

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