Question: what are cases of harassment?
Answer: a case where A is perceived (wrongly) by B to have a protected characteristic and is subjected to proscribed conduct related to that protected characteristic (e.g. tormenting a person who the tormentor believed was gay, but who was not, would amount to harassment).