Problem statement: Explains why middleware can be difficult to write also test. Please do not cite to Wikipedia as it is not considered an authoritative source in academia since there is no identifiable voice behind any of its articles (also it often comprises errors of fact also mere opinion). References please.