@Test
public void testRemoveSessionAttribute() {

  RedisFacade facade = mock(RedisFacade.class);
  try (RedisSessionRepository rsr = new RedisSessionRepository(facade, "myapp", "localhost", ExpirationStrategy.ZRANGE, false)) {
    SessionData sessionData = mock(SessionData.class);
    when(sessionData.getId()).thenReturn("id");
    rsr.removeSessionAttribute(sessionData, "attr");
    verify(facade).hdel(rsr.sessionKey("id"), encode("attr"));
  }
}