### Question:
XmlHandler { public static String[] getWordEvaluations(String url) throws MalformedURLException, JDOMException, IOException { SAXBuilder builder = new SAXBuilder(); Document doc = builder.build(new URL(url)); String[] evals = new String[3]; try { String words = getTextByXpath(doc, "/pageEvaluator/tWordsInGT/text()"); String misrecognized = getTextByXpath(doc, "/pageEvaluator/tMissedGTWords/text()"); String wordAccuracy = getTextByXpath(doc, "/pageEvaluator/recall/text()"); evals[0] = words; evals[1] = misrecognized; evals[2] = wordAccuracy; } catch (NoSuchFieldException e) { throw new JDOMException("The word evaluation values could not be found in file: " + url); } return evals; }  static boolean isEvaluation(String xml); static boolean isWordEvaluation(String xml); static String getElementContent(String xml, String element); static String[] getLayoutEvaluations(String url); static String[] getWordEvaluations(String url);  }### Answer:
@Test public void testGetWordEvaluations() throws MalformedURLException, JDOMException, IOException { String url = "http: String[] evals = XmlHandler.getWordEvaluations(url); assertEquals(3, evals.length); assertEquals("273", evals[0]); assertEquals("207", evals[1]); assertEquals("0.24175824175824176", evals[2]); }