### Question:
CypherAsciidocTableConverter { public static String asciidoc(String cypher) { List<String> lines = Arrays.stream(cypher.split(System.lineSeparator())) .filter(s -> !s.startsWith("+")) .map(l -> { int endIndex = l.lastIndexOf('|'); return endIndex < 0 ? l : l.substring(0, endIndex).trim(); }).collect(Collectors.toList()); int columns = lines.get(0).split("\\|").length - 1; lines.remove(lines.size() - 1); lines.add(formatWithLocale("%d+|%d rows", columns, lines.size() - 1)); lines.add(""); return String.join(System.lineSeparator(), lines); } private  CypherAsciidocTableConverter(); static String asciidoc(String cypher); static String cypher(String asciidoc); static String separator(int w); static String pad(String s, int w);  }### Answer:
@Test void shouldConvertCypherTableToAsciidoc() { String actual = CypherAsciidocTableConverter.asciidoc(CYPHER); assertEquals(ASCIIDOC, actual); }