MockMailBox extends DefaultMailBox { @Override protected void doSendMail(MimeMessage message) { } MockMailBox(String baseUrl, String to, String from);   }
@Test public void testDoSendMailOn() throws Exception { doSendMail(); }