public static List<String> toStringLines(String text) {
        return new BufferedReader(new StringReader(text)).lines().collect(Collectors.toList());
    }
@Test
    void testToStringLines() {
        List<String> expected = Arrays.asList("foo", "bar");
        assertEquals(expected, StringUtils.toStringLines("foo\nbar\n"));
    }