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

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

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