use mock method