@Test
public void testPrepareRemove() {

  RedisFacade facade = mock(RedisFacade.class);
  try (RedisSessionRepository rsr = new RedisSessionRepository(facade, "myapp", "localhost", ExpirationStrategy.ZRANGE, false)) {
    byte[] key = new byte[] { 35, 58, 105, 110, 118, 97, 108, 105, 100, 83, 101, 115, 115, 105, 111, 110 };
    byte[] value = RedisSessionRepository.BYTES_TRUE;
    Map<byte[], byte[]> result = new HashMap<>();
    result.put(key, value);
    rsr.prepareRemove(new SessionData("401", 100, 10));
    verify(facade, times(1)).hsetnx(argThat(matchesArray(rsr.sessionKey("401"))), argThat(matchesArray(key)), argThat(matchesArray(value)));
  }
}