how to write tests for fixed bugs

Earlier today George raised the question of how to write tests for bugs
he’s fixed. I was hoping that somebody (Ken?) could offer some guidance
on that.