ApplicationScopeExtractor implements AttributeExtractor { @Override public void setValue(String name, Object value) { context.setAttribute(name, value); } ApplicationScopeExtractor(ServletContext context); @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() { context.setAttribute("attribute", "value"); replay(context); extractor.setValue("attribute", "value"); verify(context); }