ObjectMap extends AbstractMap<String, Object> { @Override public boolean containsValue(Object value) { for (Object e : values()) { if (ObjectUtils.equals(value, e)) { return true; } } return false; } ObjectMap();  ObjectMap(Object object); Object getObject(); void setObject(Object object); Converter getConverter(); void setConverter(Converter converter); @Override void clear(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Set<Map.Entry<String, Object>> entrySet(); @Override Object get(Object key); @Override boolean isEmpty(); @Override Set<String> keySet(); @Override Object put(String key, Object value); @Override void putAll(Map<? extends String, ? extends Object> map); @Override Object remove(Object key); @Override int size(); @Override Collection<Object> values();  }
@Test public void containsValue_objfields_public() { ObjectMap objmap = new ObjectMap(new ObjContainsValue()); assertTrue(objmap.containsValue("pub field value")); }
@Test public void containsValue_objfields_private() { ObjectMap objmap = new ObjectMap(new ObjContainsValue()); assertTrue(objmap.containsValue("priv field value")); }
@Test public void containsValue_objfields_unknown() { ObjectMap objmap = new ObjectMap(new ObjContainsValue()); assertFalse(objmap.containsValue("unknown field value")); }
@Test public void containsValue_objfields_primitive() { ObjectMap objmap = new ObjectMap(new ObjContainsValue()); assertTrue(objmap.containsValue(1000)); }
@Test public void containsValue_objfields_objectns() { ObjectMap objmap = new ObjectMap(new ObjContainsValue()); assertTrue(objmap.containsValue(2000)); }
@Test public void containsValue_objfields_inherit() { ObjectMap objmap = new ObjectMap(new ObjContainsValue() { String field_child = "child field value"; }); assertTrue(objmap.containsValue("pub field value")); assertTrue(objmap.containsValue("child field value")); }