Support nil mock.