Bear: Behavioral analysis of REST applications