public class SenderManagerTest extends ComponentTestCase {
@Test
public void test() throws Exception {
SenderManager manager = lookup(SenderManager.class);
String content = Files.forIO().readFrom(new File("/tmp/html.html"), "utf-8");
List<String> receivers = new ArrayList<String>();
receivers.add("yong.you@dianping.com");
AlertMessageEntity message = new AlertMessageEntity("Test", "test", "test", content, receivers);
boolean result = manager.sendAlert(AlertChannel.MAIL, message);
System.out.println(result);
}