JSONPointer { public static Builder builder() { return new Builder(); } JSONPointer(final String pointer);  JSONPointer(List<String> refTokens); static Builder builder(); Object queryFrom(Object document); @Override String toString(); String toURIFragment();  }
@Test public void builderTest() { JSONPointer pointer = JSONPointer.builder() .append("obj") .append("other~key").append("another/key") .append(0) .build(); assertEquals("val", pointer.queryFrom(document)); }
@Test(expected = NullPointerException.class) public void nullToken() { JSONPointer.builder().append(null); }