WXHashMap extends HashMap<K, V> { @Override public V put(K key, V value) { if (key != null && key.toString() != null) { if (instancesStack.contains(key)) { instancesStack.remove(key); } instancesStack.push(key.toString()); } return super.put(key, value); }  @Override V put(K key, V value); @Override V remove(Object key); V removeFromMapAndStack(Object key); String getStackTopInstanceId(); void setStackTopInstance(String id); Stack<String> getInstanceStack(); String getTag(); void setTag(String tag);  }
@Test public void testPutKV() { mWXHashMap.put("one", "1"); assertEquals("1", mWXHashMap.get("one")); }