Please also check the return classes set by your generic method. Just testing the behaviour is not enough, we must check the "interface" too.