using mock method