public static String wrap(String input, Formatter formatter) throws FormatterException {
    return StringWrapper.wrap(Formatter.MAX_LINE_LENGTH, input, formatter);
  }
@Test
  public void textBlock() throws Exception {
    assumeTrue(Runtime.version().feature() >= 15);
    String input =
        lines(
            "package com.mypackage;",
            "public class ReproBug {",
            "  private String myString;",
            "  private ReproBug() {",
            "    String str =",
            "        \"\"\"",
            "{\"sourceEndpoint\":\"ri.something.1-1.object-internal.1\",\"targetEndpoint"
                + "\":\"ri.something.1-1.object-internal.2\",\"typeId\":\"typeId\"}\"\"\";",
            "    myString = str;",
            "  }",
            "}");
    assertThat(StringWrapper.wrap(100, input, new Formatter())).isEqualTo(input);
  }