Robert F. Kennedy Jr. showed up too late to testify Tuesday in a court case in Pennsylvania where Democratic activists are trying to bar him from the ballot for president in the premier battleground state, prompting testy exchanges between the judge and Kennedy's lawyer.