magic method this inside mock