### Question:
AtcParser { public AtcDescription getAtcCode(String drugName) throws IOException { if(drugName.length() != 0) { URLConnection d_urlStream = new URL("http: d_urlStream.setConnectTimeout(CONNECTION_TIMEOUT); d_urlStream.setReadTimeout(READ_TIMEOUT); InputStream is = d_urlStream.getInputStream(); BufferedReader readCode = new BufferedReader(new InputStreamReader(is)); String inputLine; AtcDescription result = new AtcDescription(); while ((inputLine = readCode.readLine()) != null && result.getCode() == null) { if(!new AtcParser().findDrugDetails(inputLine).isEmpty()) { result = new AtcParser().findDrugDetails(inputLine).get(0); } } return result; } return new AtcDescription(); }  List<AtcDescription> findDrugDetails(String inputLine); List<AtcDescription> parse(InputStream is); AtcDescription getAtcCode(String drugName); List<AtcDescription> getAtcDetails(String atcCode);  }### Answer:
@Test public void testCodeParseFromUrl() throws IOException { assertEquals("N06AB03", new AtcParser().getAtcCode("fluoxetine").getCode()); assertEquals("fluoxetine", new AtcParser().getAtcCode("fluoxetine").getDescription()); }