@Test(expected = AssertionError.class)
public void testGetPathToRootSelfCycleDetection() {

  MemoryObjectTreeNode<TestMemoryObject> selfCycle = new MemoryObjectTreeNode<>(new TestMemoryObject());
  selfCycle.myParent = selfCycle;
  selfCycle.getPathToRoot();
}