ConcretenessScorer { public static double getRating(String word) throws IOException, URISyntaxException { if (ratingMap == null) readRatingsFile(); if (ratingMap.containsKey(word)) return ratingMap.get(word); return 0; }  static double getRating(String word); static final String FILE; static HashMap<String, Double> ratingMap; }
@Test public void testGetRating() throws Exception { assertEquals(4.93, ConcretenessScorer.getRating("human"), 0.0); }