Fix MailTransport#open() behavior

Use designated network and create socket with hostname while using SSL
VVM.

VVM currently ignores designated network if SSL is activated. Although
all carriers supported now which requires designated network don't use
SSL, it might be a problem in the future.

SSL socket created without hostname caused NPE in b/26144676. The bug is
fixed on security side but it is still recommended to have the hostname
passed in.

+ Static Java Library mockito-target and class MockitoHelper for testing

Bug:26268339
Bug:26270166
Change-Id: If9c82381916393427e932cc28089e1efa1e3b040
4 files changed