@Test
public void testGetAllKeys() {

  RedisFacade facade = mock(RedisFacade.class);
  try (RedisSessionRepository rsr = new RedisSessionRepository(facade, "myapp", "localhost", ExpirationStrategy.ZRANGE, false)) {
    Set<byte[]> result = Collections.singleton(new byte[] { 65 });
    when(facade.hkeys(rsr.sessionKey("400"))).thenReturn(result);
    Set<String> s = rsr.getAllKeys(new SessionData("400", 100, 10));
    assertEquals(1, s.size());
    assertEquals("A", s.toArray()[0]);
    verify(facade, times(1)).hkeys(rsr.sessionKey("400"));
  }
}