Forensic Medicine

Testmentary capacity refers to -