@Test
public void testGetNode() throws Exception {

    Property delegate = mock(Property.class);
    PropertyFacade<Session> facade = getFacade(delegate);
    final Node value = mock(Node.class);
    when(delegate.getNode()).thenReturn(value);
    final String path = "/correct/path";
    when(value.getPath()).thenReturn(path);
    final Node fromFacade = facade.getNode();
    assertEquals("same path", path, fromFacade.getPath());
    assertTrue("is facade", fromFacade instanceof NodeFacade);
}