@Test
public void escapeControlCharactersWithShorthands() {

    SHORTHAND_CONTROL_CHARACTERS.chars().forEach(character -> {
        final String escaped = underTest.apply(character);
        final String expected =
                "\\" + SHORTHAND_CONTROL_CHARACTER_NAMES.charAt(SHORTHAND_CONTROL_CHARACTERS.indexOf(character));
        assertThat(escaped).isEqualTo(expected);
    });
}