DnsMessage message = getMessage("/responseNameError.dat");
HeaderSection header = message.getHeaderSection();
assertEquals(ResponseCode.NAME_ERROR, header.getResponseCode());
assertEquals(0, message.getAnswerSection().size());
assertEquals(1, message.getAuthoritySection().size());
SoaRecord soaRecord = (SoaRecord) message.getAuthoritySection().get(0);
assertEquals("cipango.org", soaRecord.getName().toString());
assertEquals("dns.ovh.net", soaRecord.getPrimaryNameServer().toString());
assertEquals("tech.ovh.net", soaRecord.getMailbox().toString());
assertEquals(2011041207, soaRecord.getSerial());
assertEquals(86400, soaRecord.getRefresh());
assertEquals(3600, soaRecord.getRetry());
assertEquals(3600000, soaRecord.getExpires());
assertEquals(86400, soaRecord.getMinimumTtl());
}