Translate the following sentence into Turkish.
This expert, Dr. Egelhoffer, the thinker from New York was giving Williams a sanity test in the sheriff's office.
Dr. Egelhoffer, New York'lu psikolog Williams'a akıl testi yapıyormuş.