@Test
public void testRemove() {

  RedisFacade facade = mock(RedisFacade.class);
  SessionManager sm = mock(SessionManager.class);
  try (RedisSessionRepository rsr = new RedisSessionRepository(facade, "myapp", "localhost", ExpirationStrategy.NOTIF, false)) {
    rsr.setSessionManager(sm);
    RepositoryBackedSession sess = mock(RepositoryBackedSession.class);
    SessionData sd = mock(SessionData.class);
    when(sess.getSessionData()).thenReturn(sd );
    when(sd.getId()).thenReturn("400");
    rsr.remove(sess.getSessionData());
    verify(facade).del(rsr.sessionKey("400"));
  }
}