public JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters) {

        return resolve(tree, new ArrayList<>(asList(split(path, refFragmentPathDelimiters))));

    }
@Test
    public void pathCanReferToArrayContentsByIndex() {

        ObjectNode root = new ObjectMapper().createObjectNode();

        ArrayNode a = root.arrayNode();
        root.set("a", a);

        a.add(root.objectNode());
        a.add(root.objectNode());
        a.add(root.objectNode());

        assertThat(resolver.resolve(root, "#/a/0", "#/."), is(sameInstance(a.get(0))));
        assertThat(resolver.resolve(root, "#/a/1", "#/."), is(sameInstance(a.get(1))));
        assertThat(resolver.resolve(root, "#/a/2", "#/."), is(sameInstance(a.get(2))));

    }