VelocityScopeMap extends ScopeMap { @Override public Object put(String key, Object value) { return request.put(key, value); } 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 testPutStringObject() { expect(request.put("key", "value")).andReturn("oldValue"); replay(request); assertEquals("oldValue", map.put("key", "value")); verify(request); }