The method lookup algorithm in CompileWithTargetClassAccessExtension is based solely on the class name and method name. In other words, it omits the parameter list of the method declaration. This results in CompileWithTargetClassAccessExtension selecting the wrong test method if the test class hierarchy declares multiple methods with the same name but different parameter lists.