@Test
public void testGetValue() {

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