In Confucian philosophy, in order to rise in government ranks in ancient Chinese society you had to pass an exam.