XTEST
The X extension that lets a client inject keystrokes and mouse movement the server treats as real.
The core X11 protocol already has SendEvent, but events sent that way carry a flag that gives them away, and many programs — xterm first among them — ignore them for security reasons. XTEST, standardised in the early 1990s so X servers could be tested automatically, sidesteps that: the client asks the server to pretend a key was pressed, and the event travels the same path as one from a real keyboard.
What was built for test suites became the backbone of a lot else. xdotool, remote desktop servers like x11vnc, keyboard-sharing tools like Synergy and assistive technology for people with motor impairments all rely on XTEST. It also says something about X's security model: any client that can reach the display can drive the whole desktop.