Moving method of called mock outside