### Question:
XMLUtils { @SuppressWarnings("unchecked") public static Map<String, Object> mapFromXML(String xml) { return (Map<String, Object>) xStream.fromXML(xml); }  static XMLGregorianCalendar getXMLCalendar(GregorianCalendar gc, int cType); static XMLGregorianCalendar newXMLCalendar(String value); static Duration getXMLDuration(String duration, int dType); static String textToString(Reader text); static String textToString(InputStream text); static Document textToDocument(String text); static Document textToDocument(InputStream text); static Document textToDocument(Reader text); static XMLStreamReader stringToStream(String content); static String sourceToString(Source source, Properties props); static String nodeToString(Node node, Properties props); static void stringToResult(String source, Result result); static String beanToXML(Object bean); static Object beanFromXML(String xml); static String mapToXML(Map<String, Object> map); @SuppressWarnings("unchecked") static Map<String, Object> mapFromXML(String xml);  }### Answer:
@Test public void testMapFromXML() throws Exception { Map map = XMLUtils.mapFromXML(xml); assertNotNull(map); assertEquals(11, map.size()); assertEquals("user8762246134350092690", map.get("key")); for (int i=0; i < 10; i++) { String key = "field" + i; assertNotNull(map.get(key)); } }