Many of the problems we have with the court system are caused or at least exasperated by smart, upstanding, and law-abiding citizens shirking their jury duty, so go when called (assuming you meet that criteria). That being said, as a theoretical exercise, read this post at Crime, Guns, and Video Tape. Here are some excerpts:
In the last three decades the judges and court clerks have felt the need to frisk Americans before they enter public buildings. More than need it was truly a case of monkey see, monkey do.
The court bureaucrats get around the Fourth Amendment, Constitutional search issues by arguing that such searches are by your consent since you do not have to enter the courthouse at all. If you refuse to be searched they will simply deny your admittance.
That all changes when you’ve been summoned or subpoenaed as a juror or witness in a court case. They are demanding for you to appear but now also demanding that you submit to being frisked like a common thief under arrest.
I’d simply tell the security folks they post at their checkpoints that you are there in response at the courts direction but you refuse to be searched. The security people will look at you like you just arrived from Mars on a flying saucer. They just won’t know what to do other than invite you to leave. Make a note of the date and time and get a name or a number for the person who kicked you out and unknowingly excused you from your duty.
How does he think up these things? Remember this one?