RequestScopeExtractor implements AttributeExtractor { @Override public void setValue(String name, Object value) { request.setAttribute(name, value); } RequestScopeExtractor(HttpServletRequest request); @Override void setValue(String name, Object value); @Override void removeValue(String name); @SuppressWarnings("unchecked") @Override Enumeration<String> getKeys(); @Override Object getValue(String key);  }
@Test public void testSetValue() { request.setAttribute("name", "value"); replay(request); extractor.setValue("name", "value"); verify(request); }