Cuba Gooding Jr. appears in NY courtroom