@Test public void shouldCreateHttpsUrlConnection() throws IOException {

  // given
  final String parsedDefaultHost = "clients3.google.com";
  // when
  HttpURLConnection connection =
      strategy.createHttpsUrlConnection("https://clients3.google.com", PORT, TIMEOUT_IN_MS);
  // then
  assertThat(connection).isNotNull();
  assertThat(connection.getURL().getHost()).isEqualTo(parsedDefaultHost);
  assertThat(connection.getURL().getPort()).isEqualTo(PORT);
  assertThat(connection.getConnectTimeout()).isEqualTo(TIMEOUT_IN_MS);
  assertThat(connection.getReadTimeout()).isEqualTo(TIMEOUT_IN_MS);
  assertThat(connection.getInstanceFollowRedirects()).isFalse();
  assertThat(connection.getUseCaches()).isFalse();
}