Are there lab tests to diagnose prostatitis?

Somewhat. There's no *absolute* test, but the diagnosis is supported by an abnormal urinalysis, irritative urinary symptoms, and a rectal exam with a tender prostate.