@SuppressWarnings("deprecated")
@Test
public void testGetNodeByUUID() 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.getNodeByUUID(uuid)).thenReturn(mockNode);
    assertEquals("/correct path with correct uuid", path, facade.getNodeByUUID(uuid).getPath());
}