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

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

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