Resources { public Resource get(String key) { return members.get(key); } 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 testGet() throws Exception { ConcurrentHashMap<String, Resource> map = EMPTY_HASH_MAP; map.put("foo", new Resource("bar")); Resources resources = new Resources(map); assertEquals(resources.get("foo").getAsString(), new Resource("bar").getAsString()); }