Forensic Medicine

Testamentary capacity refers to