VelocityScopeExtractor implements AttributeExtractor { @Override public Object getValue(String key) { return context.get(key); } VelocityScopeExtractor(Context context); @Override void removeValue(String name); @Override Enumeration<String> getKeys(); @Override Object getValue(String key); @Override void setValue(String key, Object value);  }
@Test public void testGetValue() { expect(request.get("key")).andReturn("value"); replay(request); assertEquals("value", extractor.getValue("key")); verify(request); }