NodePointer { public static NodePointer parse(String pointer) { return new NodePointer(pointer, parseJsonPointer(pointer)); } private  NodePointer(String originalString, List<String> parts); static String unescape(String pointerPart); static NodePointer parse(String pointer); List<String> getParts(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); Node getValue(Node container); Node addValue(Node container, Node value); Node addWithIntermediateValues(Node container, Node value);  }
@Test public void mustStartWithSlash() { Assertions.assertThrows(IllegalArgumentException.class, () -> NodePointer.parse("foo")); }