public static List<String> getTableStrings(List<List<String>> table)
    {
        String formatString = getShortestTableStringFormat(table);
        return table.stream()
                .map(List::toArray)
                .map(line -> format(formatString, line))
                .collect(toImmutableList());
    }
@Test
    public void testGetTableStringsSimpleSuccess()
    {
        List<List<String>> table = Arrays.asList(
                Arrays.asList("Header1", "Header2", "Headr3"),
                Arrays.asList("Value1", "Value2", "Value3"),
                Arrays.asList("LongValue1", "SVal2", "SVal3"));

        assertEquals(
                StringTableUtils.getTableStrings(table),
                Arrays.asList(
                        "| Header1    | Header2 | Headr3 |",
                        "| Value1     | Value2  | Value3 |",
                        "| LongValue1 | SVal2   | SVal3  |"));
    }