SONARJAVA-67 Add test cases for anonymous classes and public API verification