@Test
public void toURIFragment() {

    assertEquals("#/c%25d", new JSONPointer("/c%d").toURIFragment());
    assertEquals("#/e%5Ef", new JSONPointer("/e^f").toURIFragment());
    assertEquals("#/g%7Ch", new JSONPointer("/g|h").toURIFragment());
    assertEquals("#/m%7En", new JSONPointer("/m~n").toURIFragment());
}