### Question:
SessionScopeExtractor implements AttributeExtractor { @Override public void setValue(String name, Object value) { request.getSession().setAttribute(name, value); } SessionScopeExtractor(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);  }### Answer:
@Test public void testSetValue() { expect(request.getSession()).andReturn(session); session.setAttribute("name", "value"); replay(request, session); extractor.setValue("name", "value"); verify(request, session); }