A few things you should know or think about:
First, make sure you go to the hearing.
Second, if you have auto insurance, it typically covers you when you are driving another's vehicle, i.e. the insurance "travels" with you. Check your policy. Should you have that proof of insurance with you? Yes.
Third, if you were driving a car with expired tabs, the court likely will determine that you should have known that.
Fourth, explain about your intermediate license to the judge...this is why you want to make sure you go to the hearing, and the fact that you have your own insurance, i.e. you act responsibly, and respectfully request that the citation be dismissed. In some states, officers do not show up for the hearing, which is an automatic dismissal.