Imperial examination in Chinese mythology
The imperial examination was a civil service examination system in Imperial China designed to select the most promising candidates for administrative roles, with the aim of recruiting them into the state bureaucracy. Its purpose of testing and selecting candidates for merit significantly influenced various aspects of society and culture in Imperial China, including Chinese mythology.
Source: Wikipedia — Imperial examination in Chinese mythology (CC BY-SA 4.0)