### Question:
JsonUtils { public static Map<String, String> getMapFromJsonString(String json) { Map<String, String> map = null; JsonFactory factory = new JsonFactory(); ObjectMapper mapper = new ObjectMapper(factory); TypeReference<HashMap<String,String>> typeRef = new TypeReference<HashMap<String,String>>() {}; try { map = mapper.readValue(json, typeRef); } catch (IOException e) { LOG.failedToGetMapFromJsonString( json, e ); } return map; }  static String renderAsJsonString(Map<String, Object> map); static String renderAsJsonString(Object obj); static String renderAsJsonString(Object obj, FilterProvider filterProvider, DateFormat dateFormat); static Object getObjectFromJsonString(String json); static Map<String, String> getMapFromJsonString(String json); static Map<String,HashMap<String, ArrayList<HashMap<String, String>>>> getFileStatusesAsMap(String json);  }### Answer:
@Test public void testGetMapFromString() { HashMap map = (HashMap) JsonUtils.getMapFromJsonString(test); assertEquals("ksdfh3489tyiodhfjk", map.get("access_token")); assertEquals("Bearer", map.get("token_type")); assertEquals("1364487943100", map.get("expires_in")); }