@Test public void testMXs() { try { List<MX> mxRecords = dbDao.getMXs("bcs.com"); for (MX mx : mxRecords) { assertNotNull(mx.gethostName()); System.out.println(mx.gethostName()); } db.close(); } catch (Exception ex) { System.err.println(ex.getMessage()); } }