@Test
public void shouldReturnSessionForValidSID() throws IOException {

    HttpSessionImpl session = new HttpSessionImpl("123", System.currentTimeMillis());
    when(sessionStorage.getSession("123")).thenReturn(session);
    HttpSessionImpl sessionRead = servletContext.getSession("123");
    assertThat(sessionRead, is(not(nullValue())));
    assertThat(sessionRead.getServletContext(), is((ServletContext) servletContext));
}