@Test
public void shouldGetItemByIdentifierPath() throws Exception {

    initializeData();
    // Look up the node by the identifier path ...
    Item item = session.getItem(identifierPathFor("/a"));
    assertThat(item, instanceOf(Node.class));
    assertThat(item.getPath(), is("/a"));
    item = session.getItem(identifierPathFor("/a/b"));
    assertThat(item, instanceOf(Node.class));
    assertThat(item.getPath(), is("/a/b"));
    item = session.getItem(identifierPathFor("/"));
    assertThat(item, instanceOf(Node.class));
    assertThat(item.getPath(), is("/"));
}