Forbid wild card as return type check 195

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