### Question:
EthGasStationInfoDao { public EthGasInfo getEthChainPriceInfo() throws IOException { EthChainGasInfoImpl ethGasInfo = null; HttpsURLConnection con = null; try { URL url = new URL(Constants.ETH_CHAIN_GAS_INFO_URL); SSLContext sc = null; try { sc = SSLContext.getInstance("TLSv1.2"); sc.init(null, null, new java.security.SecureRandom()); } catch (NoSuchAlgorithmException ex) { Logger.getLogger(EthGasStationInfoDao.class.getName()).log(Level.SEVERE, null, ex); } catch (KeyManagementException ex) { Logger.getLogger(EthGasStationInfoDao.class.getName()).log(Level.SEVERE, null, ex); } con = (HttpsURLConnection) url.openConnection(); con.setSSLSocketFactory(sc.getSocketFactory()); if (con.getResponseCode() == HttpURLConnection.HTTP_OK) { try (Reader reader = new BufferedReader(new InputStreamReader(con.getInputStream(), "UTF-8"))) { ethGasInfo = new ObjectMapper() .readerFor(EthChainGasInfoImpl.class) .readValue(reader); } } } finally { con.disconnect(); } if (ethGasInfo.getSafeLowSpeedPrice().equals(0L)) { return null; } return ethGasInfo; }  EthGasInfo getEthPriceInfo(); EthGasInfo getEthChainPriceInfo();  }### Answer:
@Test void testChainQuery() { logger.log(Level.INFO, "Teting ETH Chain Gas station query: "); try { for (int i = 0; i < nTests; i++) { logger.log(Level.INFO, "test " + (i + 1) + " out of " + nTests); EthGasInfo ethGasInfo = ethGasStationInfoDao.getEthChainPriceInfo(); assert (ethGasInfo != null); logger.log(Level.INFO, "average : " + ethGasInfo.getAverageSpeedPrice()); logger.log(Level.INFO, "fast : " + ethGasInfo.getFastSpeedPrice()); logger.log(Level.INFO, "low : " + ethGasInfo.getSafeLowSpeedPrice()); } } catch (IOException ex) { logger.log(Level.SEVERE, null, ex); } }