Method added to test for Android runtime
On Android subclass Socket and override connect() method to avoid
several problems with replacing SocketImpl on Harmony runtime.