  @Test
  public void shouldGetValue() throws Exception {

    JsonNode node = mapper.readValue("{\"key\": {\"sub\": \"value\"}}", JsonNode.class);
    JsonPointer pointer = JsonPointer.compile("/key/sub");
    
    JsonPointerEditor editor = new JsonPointerEditor(node, pointer);
    assertThat("value", equalTo(editor.getValue().asText()));
  }