VelocityScopeExtractor implements AttributeExtractor { @Override public void setValue(String key, Object value) { context.put(key, value); } 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 testSetValue() { expect(request.put("key", "value")).andReturn(null); replay(request); extractor.setValue("key", "value"); verify(request); }