Resources { public Resource add(String key, Resource value) { return members.put(key, value); } 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 testAdd() throws Exception { Resources resources = new Resources(); resources.add("foo", new Resource("bar")); assertEquals(resources.members.size(), 1); }