Extract MockUser to its own source file.