Abstracted out test to see if a method exists with parameters and return
type