ScopeExtractor implements AttributeExtractor { @Override public void removeValue(String name) { context.removeAttribute(name, scope); } ScopeExtractor(JspContext context, int scope); @Override void removeValue(String name); @Override Enumeration<String> getKeys(); @Override Object getValue(String key); @Override void setValue(String key, Object value);  }
@Test public void testRemoveValue() { context.removeAttribute("key", PageContext.PAGE_SCOPE); replay(context); extractor.removeValue("key"); verify(context); }