### Question:
EnableApiDiscoveryConfig { @Bean public MessageService messageServiceDiscovery() { MessageService messageService = YamlMessageServiceInstance.getInstance(); messageService.loadMessages("/onboarding-enabler-spring-messages.yml"); return messageService; }  @Bean MessageService messageServiceDiscovery(); @ConditionalOnMissingBean(EurekaClientProvider.class) @Bean ApiMediationClient defaultApiMediationClient(); @ConditionalOnBean(EurekaClientProvider.class) @Bean ApiMediationClient apiMediationClient(EurekaClientProvider eurekaClientProvider); @ConditionalOnBean(name = "EurekaClientProvider.class, EurekaClientConfigProvider.class") @Bean ApiMediationClient apiMediationClient(EurekaClientProvider eurekaClientProvider, EurekaClientConfigProvider eurekaClientConfigProvider); @ConfigurationProperties(prefix = "apiml.service") @Bean ApiMediationServiceConfig apiMediationServiceConfig();  }### Answer:
@Test public void messageServiceDiscovery() { String baseUrl = "localhost"; String ipAddress = "127.0.0.0"; String discovery = "https: String correctMessage = String.format( "ZWEA001I Registering to API Mediation Layer: {baseUrl=%s, ipAddress=%s, discoveryServiceUrls=%s}", baseUrl, ipAddress, discovery); MessageService messageService = new EnableApiDiscoveryConfig().messageServiceDiscovery(); Message message = messageService.createMessage("org.zowe.apiml.enabler.registration.successful", baseUrl, ipAddress, discovery); assertTrue(message.mapToLogMessage().contains(correctMessage)); }