It sounds as though you were trying to do the right thing. I hope if I'm ever in that situation, I get stopped by Andy instead of Barney. You broke the law and she felt the need to enforce it to an extreme. I hope you win!
thats the key, getting checked by those with good judgement. I have found in most cases when dealing with women in a position of authority, they push things to extremes...kinda like Barney.