@Test
public void parentOfNodeShouldBeParentNode() throws Exception {

    assertThat(savedNode.getParent(), is(rootNode));
    assertThat(newNode.getParent(), is(rootNode));
    assertThat(nodeWithModifiedProperty.getParent(), is(rootNode));
    assertThat(nodeWithModifiedChildren.getParent(), is(rootNode));
    assertThat(nodeOfDepth2.getParent(), is(nodeWithModifiedChildren));
}