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