Test for a method with unresolved generic types