Adapter that intercepts the window displayed by the main() of a given class.
This adapter keeps the reference of the intercepted window, so that main() is not called on
subsequent calls. If you need to run main() again, you can either call
MainClassAdapter.reset() or create a new
adapter.