Add test case for unusedPrivateMethod with generics