Robert F. Kennedy Jr. showed up too late to testify in a court case in Pennsylvania where Democratic activists are trying to bar him from the ballot for president in the battleground state.