adapt test mock interface