it("should throw an error", () => {
        const tree: BST<number> = new BST<number>([]);

        expect(() => tree.getMaxNode()).toThrowError("Tree is empty");
    });