CtripPlatformEmailService implements EmailService { @VisibleForTesting protected static List<String> decodeListString(String str) { String[] strs = StringUtil.splitRemoveEmpty("\\s*,\\s*", str); return Arrays.asList(strs); }  @Override void sendEmail(Email email); @Override CheckEmailResponse checkEmailAddress(String address); @Override CommandFuture<EmailResponse> sendEmailAsync(Email email); @Override CommandFuture<EmailResponse> sendEmailAsync(Email email, Executor executor); @Override @SuppressWarnings("unchecked") boolean checkAsyncEmailResult(EmailResponse response); @Override int getOrder();  }
@Test public void testDecodeListString() { List<String> expected = Lists.newArrayList("123", "456", "789"); List<String> result = CtripPlatformEmailService.decodeListString("123,456,789"); Assert.assertEquals(expected, result); }