add a mainTest to TwitterClientTest Class. Use Reflection invoke the main function and run in another thread with timeout.