Adding method mock override feature.