  @Test
  public void escapesAreReplacedByTheirReplacements() {

    StringEscapeHelper escapeHelper = new StringEscapeHelper(
      'n', '\n',
      't', '\t',
      'x', '!'
    );
    String unescaped = escapeHelper.unescape("\\thello\\nworld\\x");
    assertThat(unescaped, is("\thello\nworld!"));
  }