title: RDP connectivity/responsiveness test
body: <p>I want to write an app to test whether a Windows machine is responding correctly to <strong>RDP (Remote Desktop)</strong> - i.e. to check if the machine not only allows the connection, but is also responding normally, and is not hung or otherwise responding abnormally.</p>
  
  <p>Is there a library or utility that I can use to do this? My searches turned up full <code>RDC clients</code>, but I'm hoping there's something out there at least offers an API for testing. I would most like to use Java or a scripting language to do this, but I'm open to suggestions. </p>