### Question:
YamlMessageService extends AbstractMessageService { @Override public void loadMessages(String messagesFilePath) { try (InputStream in = YamlMessageService.class.getResourceAsStream(messagesFilePath)) { Yaml yaml = new Yaml(); MessageTemplates messageTemplates = yaml.loadAs(in, MessageTemplates.class); super.addMessageTemplates(messageTemplates); } catch (YAMLException | IOException e) { throw new MessageLoadException("There is problem with reading application messages file: " + messagesFilePath, e); } } YamlMessageService();  YamlMessageService(String messagesFilePath); @Override void loadMessages(String messagesFilePath);  }### Answer:
@Test public void testLoadMessages() { MessageService messageService = new YamlMessageService("/test-messages.yml"); Message message = messageService.createMessage("org.zowe.apiml.common.serviceTimeout", "3000"); assertEquals("Keys are different", "org.zowe.apiml.common.serviceTimeout", message.getMessageTemplate().getKey()); message = messageService.createMessage("org.zowe.apiml.test.noArguments"); assertEquals("Keys are different", "org.zowe.apiml.test.noArguments", message.getMessageTemplate().getKey()); }