Use a named-pattern to match tested method name