@Test
public void retrieveHttpSessionFromWSSession() {

    TestSession session = new TestSession();
    TestHttpSession httpSession = new TestHttpSession();
    session.getUserProperties().put(HttpSession.class.getName(), httpSession);
    assertThat(WebUtils.retrieveHttpSessionFromWSSession(session).get()).isSameAs(httpSession);
}