My bunny Killer could be like that. She usually loved attention, but if she wasn't in the mood, she'd certainly let you know about it! Killer was litter box trained, and we let her have the run of the house (no dogs yet). She knew that I was "her" human, and she was very territorial of my room. If a stranger entered my room, she would attack the feet of that person. Very useful, and rather funny.
LoL, nothing like watching your annoying little cousin being chased out of the room by a 1 lb Netherland dwarf bunny...