SimpleDataStore implements DataStore { @Override public void remove(String componentName, String key) { if (!data.containsKey(componentName)) { return; } data.get(componentName).remove(key); }  @Override Map<String, Object> get(String componentName); @Override Object get(String componentName, String key); @Override void put(String componentName, String key, Object value); @Override void remove(String componentName, String key);  }
@Test public void testRemove() throws Exception { dataStore.remove("xxx", "yyy"); dataStore.put("name", "key", "1"); dataStore.remove("name", "key"); assertNull(dataStore.get("name", "key")); }