### Question:
ApiMediationClientImpl implements ApiMediationClient { @Override public synchronized void register(ApiMediationServiceConfig config) throws ServiceDefinitionException { if (eurekaClient != null) { throw new ServiceDefinitionException("EurekaClient was previously registered for this instance of ApiMediationClient. Call your ApiMediationClient unregister() method before attempting other registration."); } EurekaClientConfig clientConfiguration = eurekaClientConfigProvider.config(config); ApplicationInfoManager infoManager = initializeApplicationInfoManager(config); eurekaClient = initializeEurekaClient(infoManager, clientConfiguration, config); } ApiMediationClientImpl();  ApiMediationClientImpl(EurekaClientProvider eurekaClientProvider);  ApiMediationClientImpl(EurekaClientProvider eurekaClientProvider, EurekaClientConfigProvider eurekaClientConfigProvider);  ApiMediationClientImpl(EurekaClientProvider eurekaClientProvider, EurekaClientConfigProvider eurekaClientConfigProvider, EurekaInstanceConfigCreator instanceConfigCreator); @Override synchronized void register(ApiMediationServiceConfig config); @Override synchronized void unregister(); EurekaClient getEurekaClient();  }### Answer:
@Test public void httpsBaseUrlFormat() throws ServiceDefinitionException { ApiMediationServiceConfigReader apiMediationServiceConfigReader = new ApiMediationServiceConfigReader(); ApiMediationServiceConfig config = apiMediationServiceConfigReader.buildConfiguration("/https-service-configuration.yml"); EurekaClientProvider clientProvider = Mockito.mock(EurekaClientProvider.class); EurekaInstanceConfigCreator instanceConfigCreator = new EurekaInstanceConfigCreator(); EurekaClientConfig clientConfig = new EurekaClientConfiguration(config); EurekaClientConfigProvider eurekaClientConfigProvider = Mockito.mock(ApiMlEurekaClientConfigProvider.class); when(eurekaClientConfigProvider.config(config)).thenReturn(clientConfig); ApiMediationClient client = new ApiMediationClientImpl(clientProvider, eurekaClientConfigProvider, instanceConfigCreator); client.register(config); verify(clientProvider).client(any(), any(), any()); }