PersistentMap implements Initialisable { public boolean containsKey(final K key) throws DataAccessLayerException { return (key != null && _dao.contains(key)); } PersistentMap(final Class<K> k, final Class<V> v, final String name, final boolean bidirectional,
			final V defaultValue); void clear(); boolean containsKey(final K key); boolean containsValue(final V value); Set<Map.Entry<K, V>> entrySet(); V get(final K key); K getKeyQuick(final V value); V getQuick(final K key); @Override void initialise(final DataAccessLayerFactory factory); boolean isEmpty(); Iterator<K> keyIterator(); Set<K> keySet(); V put(final K key, final V value); void putAll(final Map<? extends K, ? extends V> m); void putQuick(final K key, final V value); @SuppressWarnings("unchecked") V remove(final K key); @SuppressWarnings("unchecked") void removeQuick(final K key); int size(); Iterator<V> valueIterator(); Collection<V> values();  }
@Test public void containsKeyTest() throws DataAccessLayerException { for (String key : TESTDATA1.keySet()) { assertTrue(map.containsKey(key)); } for (String key : TESTDATA4.keySet()) { assertTrue(!map.containsKey(key)); } }