Put require after mock replacement.