@Test
public void testGetValue() {

    expect(request.getSession(false)).andReturn(session);
    expect(session.getAttribute("name")).andReturn("value");
    replay(request, session);
    assertEquals("value", extractor.getValue("name"));
    verify(request, session);
}