@Ignore
@Test(timeout = 10000)
public void testFormatDefaultRegionEndpoint() {

    // if IMDS can't be reached, this test takes >15 seconds
    Region.setInstanceMetadataServiceClientConfig(
            new ClientConfig()
                    .property(ClientProperties.CONNECT_TIMEOUT, 1000)
                    .property(ClientProperties.READ_TIMEOUT, 5000));
    Service svc =
            Services.serviceBuilder()
                    .serviceName("test")
                    .serviceEndpointPrefix("test")
                    .serviceEndpointTemplate("https://test.{region}.{secondLevelDomain}")
                    .build();
    Region.formatDefaultRegionEndpoint(svc, "unknown");
}