Re: What is Wayland ?
XWayland does support the X11 clients. The difference is that it isn't interfacing with the hardware, but it is simply Wayland-client.
So, you can use all the testing you use otherwise.
X11 was always a message-based protocol over sockets. So you can use the Xlib-library that sends the commands to Xwayland.
You never called X-server directly since it was supposed to be "network transparent" (in practice that required a lot of low-level code to do that but that was what user saw).
Wayland does the same thing: it is message-based but the protocol is different.
Why is the protocol different? Imagine you are switching to a modern locomotive (a train) from a coal-powered one: what can you re-use? Not a lot.