A legal document in which a person (the testator) declares his intention as to what should happen to his estate after his death, and which is executed in accordance with certain legal formalities.