DSNBounce extends GenericMailet implements RedirectNotify { @Override public Set<String> getAllowedInitParameters() { return CONFIGURABLE_PARAMETERS; } @Inject  DSNBounce(DNSService dns);  DSNBounce(DNSService dns, DateTimeFormatter dateFormatter); @Override void init(); @Override String getMailetInfo(); @Override InitParameters getInitParameters(); @Override Set<String> getAllowedInitParameters(); @Override DNSService getDNSService(); @Override String getMessage(Mail originalMail); @Override List<MailAddress> getRecipients(); @Override List<MailAddress> getRecipients(Mail originalMail); @Override List<InternetAddress> getTo(); @Override List<MailAddress> getTo(Mail originalMail); @Override Optional<MailAddress> getReplyTo(); @Override Optional<MailAddress> getReplyTo(Mail originalMail); @Override Optional<MailAddress> getReversePath(); @Override Optional<MailAddress> getReversePath(Mail originalMail); @Override Optional<MailAddress> getSender(); @Override Optional<MailAddress> getSender(Mail originalMail); @Override Optional<String> getSubjectPrefix(Mail newMail, String subjectPrefix, Mail originalMail); @Override void service(Mail originalMail); @Override MimeMessageModifier getMimeMessageModifier(Mail newMail, Mail originalMail);  }
@Test void getAllowedInitParametersShouldReturnTheParameters() { assertThat(dsnBounce.getAllowedInitParameters()).containsOnly("debug", "passThrough", "messageString", "attachment", "sender", "prefix"); }