VelocityScopeMap extends ScopeMap { public boolean containsKey(Object key) { return request.containsKey(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 testContainsKey() { expect(request.containsKey("key")).andReturn(true); replay(request); assertTrue(map.containsKey("key")); verify(request); }