title: Spring session with redis - how to mock it in integration tests?
body: <p>So, Im using spring session in my project. 
  How to write integration tests in project using it? Should I mock something for spring session internals? Or any reasonable way to use embedded redis?</p>
  
  <p>I saw there was some @EnableEmbeddedRedis annotation in past, but seems it was removed: <a href="https://github.com/spring-projects/spring-session/issues/248" rel="noreferrer">https://github.com/spring-projects/spring-session/issues/248</a></p>
  
  <p>//edit</p>
  
  <p>Ive tried to pass MockHttpSession to </p>
  
  <pre><code>mockMvc.perform(post("/register").session(mockHttpSession)
  </code></pre>
  
  <p>but spring tries and fails to connect to redis anyway.</p>