### Question:
RestCollection { public boolean containsValue(Object value) { checkClass(RestModel.class, value.getClass()); RestModel desired = (RestModel) value; boolean found = false; for (T rm : models) { if (rm.equals(desired)) { found = true; break; } } return found; }  void put(String id, T model); T get(String id); T remove(String id); boolean containsKey(String id); int size(); boolean isEmpty(); boolean containsKey(Object key); boolean containsValue(Object value); T get(Object key); T put(RestModelMetadata key, T value); T remove(Object key); void putAll(Map<? extends RestModelMetadata, ? extends T> m); void clear(); Set<RestModelMetadata> keySet(); Collection<T> values(); Set<Entry<RestModelMetadata, T>> entrySet();  }### Answer:
@Test public void testContainsValue() throws Exception { TestModel tm = CompositeUtil.instance().getModel(TestModel.class); assertNotNull(tm); rc.put("1", tm); assertEquals(1, rc.size()); assertTrue(rc.containsValue(tm)); }