### Question:
MessageStoreManagerImpl implements MessageStoreManager, ApplicationContextAware { public String formatPhoneNumber(String requesterPhone, MessageType type) { if (requesterPhone == null || requesterPhone.isEmpty()) { return null; } String[] recipients = requesterPhone.split(DELIMITER); StringBuilder builder = new StringBuilder(); for (String recipient : recipients) { builder.append(format(recipient, type)).append(DELIMITER); } String formattedNumber = builder.substring(0,builder.length()-1); return formattedNumber; }  GatewayRequest constructMessage(MessageRequest messageRequest, Language defaultLang); String parseTemplate(String template, Set<NameValuePair> templateParams); String formatPhoneNumber(String requesterPhone, MessageType type); CoreManager getCoreManager(); void setCoreManager(CoreManager coreManager); void setMaxConcat(int maxConcat); void setCharsPerSMS(int charsPerSMS); void setConcatAllowance(int concatAllowance); void setLocalNumberExpression(String localNumberExpression); void setDefaultCountryCode(String defaultCountryCode); void setApplicationContext(ApplicationContext applicationContext);  }### Answer:
@Test public void countryCodeShouldBeAppendedForTextMessageRecipients() { String formattedNumber = instance.formatPhoneNumber("0123456789,0223423456", MessageType.TEXT); assertEquals("233123456789,233223423456",formattedNumber); assertEquals("233111111111",instance.formatPhoneNumber("0111111111",MessageType.TEXT)); assertEquals("111111111,222222222",instance.formatPhoneNumber("111111111,222222222",MessageType.TEXT)); }
@Test public void leadingZeroShouldBeRemovedForVoiceMessageRecipients() { String formattedNumber = instance.formatPhoneNumber("0123456789,0223423456", MessageType.VOICE); assertEquals("123456789,223423456",formattedNumber); assertEquals("111111111",instance.formatPhoneNumber("111111111",MessageType.VOICE)); assertEquals("111111111,222222222",instance.formatPhoneNumber("111111111,222222222",MessageType.VOICE)); }