@Test
public void testGetNodeByIdentifier() throws Exception {

    Session delegate = mock(Session.class);
    SessionFacade<Session> facade = getFacade(delegate);
    Node mockNode = mock(Node.class);
    final String path = "/correct";
    final String uuid = "some uuid";
    when(mockNode.getPath()).thenReturn(path);
    when(delegate.getNodeByIdentifier(uuid)).thenReturn(mockNode);
    assertEquals("/correct path with correct id", path, facade.getNodeByIdentifier(uuid).getPath());
}