Forbid throw anonymous exception 195

Compilable UT input and fixed pom.xml, including this input