DefaultEmailService implements EmailService { @Override public int getOrder() { return LOWEST_PRECEDENCE; }  @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 boolean checkAsyncEmailResult(EmailResponse response); @Override int getOrder();  }
@Test public void getOrder() throws Exception { int expected = 2147483647; Assert.assertEquals(expected, emailService.getOrder()); }