Heard found herself in a tense exchange with Johnny Depp’s attorney as the trial nears its end.