import org.apache.james.protocols.smtp.hook.HookReturnCode;
public class ValidSenderDomainHandlerTest extends TestCase {
private DNSService setupDNSServer() {
DNSService dns = new BaseFakeDNSService(){
public Collection<String> findMXRecords(String hostname) {
Collection<String> mx = new ArrayList<String>();
if (hostname.equals("test.james.apache.org")) {
mx.add("mail.james.apache.org");