Israeli Prime Minister Benjamin Netanyahu appeared in court to testify in his corruption trial.