@Test
public void managersEqualReturnsTrueWhenSameId() {

    // given
    var managerNodeId = 1L;
    var managerNode = new HierarchyTreeNode(otherUserMock);
    var otherManagerNode = new HierarchyTreeNode();
    managerNode.id = managerNodeId;
    otherManagerNode.id = managerNodeId;
    var node = new HierarchyTreeNode(userMock);
    node.manager = managerNode;
    var otherNode = new HierarchyTreeNode(userMock);
    otherNode.manager = otherManagerNode;
    // when / then
    assertThat(node.managersEqual(otherNode)).isTrue();
}