Did RFK Jr. testify brain damage prevented him from holding a job during divorce proceedings?

The claim stems from a 2024 New York Times report, which cites a 2012 deposition by Kennedy during the proceedings.