final ConfigData configData = new ConfigData();
final InternalConnectionFactory internalConnFactory = new InternalConnectionFactory(
configData, connFactory);
final HttpRoute route = new HttpRoute(new HttpHost("somehost"));
internalConnFactory.create(route, iosession);
Mockito.verify(sslStrategy, Mockito.never()).upgrade(Mockito.eq(new HttpHost("somehost")),
Mockito.<IOSession>any());
Mockito.verify(connFactory).create(Mockito.same(iosession), Mockito.<ConnectionConfig>any());
}