SpamAssassin extends GenericMailet { @Override public String getMailetInfo() { return "Checks message against SpamAssassin"; } @Inject  SpamAssassin(MetricFactory metricFactory, UsersRepository usersRepository); @Override void init(); @Override void service(Mail mail); @Override String getMailetInfo(); static final String SPAMD_HOST; static final String SPAMD_PORT; static final String DEFAULT_HOST; static final int DEFAULT_PORT; }
@Test public void getMailetInfoShouldReturnSpamAssasinMailetInformation() { assertThat(mailet.getMailetInfo()).isEqualTo("Checks message against SpamAssassin"); }