LdapIdentityProperties extends HashMap<String, Object> { @Override public boolean containsKey(Object key) { String realKey = keyMapping.get(convert(key)); return realKey != null && super.containsKey(realKey); } LdapIdentityProperties(int initialCapacity, float loadFactor);  LdapIdentityProperties(int initialCapacity);  LdapIdentityProperties();  LdapIdentityProperties(Map<? extends String, ?> m); @Override Object put(String key, Object value); @Override Object remove(Object key); @Override Object get(Object key); @Override boolean containsKey(Object key); @Override void putAll(Map<? extends String, ?> m); @Override void clear();  }
@Test public void testContainsKey() { assertTrue(properties.containsKey("a")); assertTrue(properties.containsKey("A")); assertFalse(properties.containsKey("c")); }
@Test public void testContainsKeyNull() { assertFalse(properties.containsKey(null)); }