Resources { public static Resources fromXml(Reader reader) throws IOException { return from(reader, new XmlConverter()); } Resources();  Resources(@NonNull ConcurrentHashMap<String, Resource> members); static Resources from(Reader reader, Converter converter); static Resources from(String string, Converter converter); static Resources fromJson(Reader reader); static Resources fromJson(String string); static Resources fromJson(InputStream reader); static Resources fromXml(Reader reader); static Resources fromXml(String string); static Resources fromXml(InputStream reader); Resource add(String key, Resource value); boolean has(String key); Resource get(String key); Resources merge(Resources resources);  }
@Test public void testFromXmlReader() throws Exception { assertNotNull(Resources.fromXml(new StringReader( "<?xml version=\"1.0\" encoding=\"utf-8\"?><resources><integer name=\"max_speed\">75</integer></resources>"))); }
@Test public void testFromXmlString() throws Exception { assertNotNull(Resources.fromXml( "<?xml version=\"1.0\" encoding=\"utf-8\"?><resources><integer name=\"max_speed\">75</integer></resources>")); }
@Test public void testFromXmlInputStream() throws Exception { assertNotNull(Resources.fromXml(getClass().getResourceAsStream("/test.xml"))); }