PauselessHashMap extends java.util.AbstractMap<K, V> implements Map<K, V>,
        Cloneable, Serializable { @Override public V put(K key, V value) { return putImpl(key, value); } PauselessHashMap();  PauselessHashMap(int capacity);  PauselessHashMap(int capacity, float loadFactor);  PauselessHashMap(Map<? extends K, ? extends V> map); @Override void clear(); @Override Object clone(); @Override boolean containsKey(Object key); @Override @SuppressWarnings("unchecked") boolean containsValue(Object value); @Override Set<Map.Entry<K, V>> entrySet(); @Override V get(Object key); @Override boolean isEmpty(); @Override Set<K> keySet(); @Override V put(K key, V value); @Override void putAll(Map<? extends K, ? extends V> map); @Override V remove(Object key); @Override int size(); @Override Collection<V> values();  }
@Test public void testSerializationCompatibility() throws Exception { PauselessHashMap<String, String> hm = new PauselessHashMap<String, String>(); hm.put("key", "value"); }
@Test public void test_toString() { PauselessHashMap m = new PauselessHashMap(); m.put(m, m); String result = m.toString(); assertTrue("should contain self ref", result.indexOf("(this") > -1); }
@Test public void test_Map_Entry_hashCode() { PauselessHashMap<Integer, Integer> map = new PauselessHashMap<Integer, Integer>(10); Integer key = new Integer(1); Integer val = new Integer(2); map.put(key, val); int expected = key.hashCode() ^ val.hashCode(); assertEquals(expected, map.hashCode()); key = new Integer(4); val = new Integer(8); map.put(key, val); expected += key.hashCode() ^ val.hashCode(); assertEquals(expected, map.hashCode()); }
@Test public void testSerializationSelf() throws Exception { PauselessHashMap<String, String> hm = new PauselessHashMap<String, String>(); hm.put("key", "value"); hm.put(null, "null"); }