### Question:
Escape { static StringBuilder createOutput(StringBuilder sb, String string) { if (sb.length() < 2) { throw new IllegalArgumentException(string + " has to be at least two characters long."); } return new StringBuilder(); }    }### Answer:
@Test @DisplayName("Create output creates a StringBuilder when the string is long enough") void createOutputCreatesOutput() { assertThat(Escape.createOutput(new StringBuilder("aa"), "aa").length()) .isEqualTo(0); }
@Test @DisplayName("Create output creates throws up if string is short") void createOutputThrows() { assertThatThrownBy(() -> Escape.createOutput(new StringBuilder("a"), "a")) .isInstanceOf(IllegalArgumentException.class); }