Resources { public static Resources fromJson(Reader reader) throws IOException { return from(reader, new JsonConverter()); } 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 testFromJsonReader() throws Exception { assertNotNull(Resources.fromJson(new StringReader("{\"foo\":\"bar\"}"))); }
@Test public void testFromJsonString() throws Exception { assertNotNull(Resources.fromJson("{\"foo\":\"bar\"}")); }
@Test public void testFromJsonInputStream() throws Exception { assertNotNull(Resources.fromJson(getClass().getResourceAsStream("/test.json"))); }