ConfigReader { public static boolean initialize(URL configFileUrl) { byte[] jsonData = null; if (configFileUrl != null) { try { InputStream input = configFileUrl.openStream(); jsonData = IOUtils.toByteArray(input); input.close(); } catch (IOException e) { e.printStackTrace(); } } ObjectMapper objectMapper = new ObjectMapper(); try { rootJsonNode = objectMapper.readTree(jsonData); } catch (IOException e) { return false; } return true; }  static boolean initialize(URL configFileUrl); static BgpSpeakers getBgpSpeakers(); static BgpPeers getBgpPeer();  }
@Test public void testInitialize() throws MalformedURLException, IOException { File configFile = new File(DEFAULT_CONFIG_FILE); URL configFileUrl = configFile.getCanonicalFile().toURI().toURL(); assertEquals(true, ConfigReader.initialize(configFileUrl)); }