If a provision contained in the will of a deceased person operates as an appointment under a general power to appoint by will, the property, whether real or personal, that passes because of the provision vests in the executor or administrator as if the testator had been entitled to the property at his or her death, whether or not he or she was so entitled for an estate or interest determining on his or her death or for any other estate or interest.