RequestScopeExtractor implements AttributeExtractor { @Override public void removeValue(String name) { request.removeAttribute(name); } 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 testRemoveValue() { request.removeAttribute("name"); replay(request); extractor.removeValue("name"); verify(request); }