VelocityScopeMap extends ScopeMap { @Override public Object remove(Object key) { return request.remove(key); } VelocityScopeMap(Context request); @Override Object remove(Object key); @Override Object put(String key, Object value); boolean containsKey(Object key); boolean isEmpty(); Set<String> keySet(); int size();  }
@Test public void testRemoveObject() { expect(request.remove("key")).andReturn("value"); replay(request); assertEquals("value", map.remove("key")); verify(request); }