@Test public void testFandRMappings() { try { List<FandRMapping> fandRMappings = dbDao.getFandRMappings("bcs.com"); for (FandRMapping fr : fandRMappings) { assertNotNull(fr.gethostName()); System.out.println(fr.gethostName()); Map<Integer, String> iPAddressesFandR = dbDao.getIPAddressesFandR(fr); List<String> ips = new ArrayList<String>(iPAddressesFandR.values()); for (String ipAddress : ips) { assertNotNull(ipAddress); System.out.println(ipAddress); } } db.close(); } catch (Exception ex) { System.err.println(ex.getMessage()); } }