@Test
public void testSessionDeleted() {

  expiration.sessionDeleted(session);
  ArgumentCaptor<byte[]> captureExpireKey = ArgumentCaptor.forClass(byte[].class);
  ArgumentCaptor<byte[]> captureSessionKey = ArgumentCaptor.forClass(byte[].class);
  verify(redis).srem(captureExpireKey.capture(), captureSessionKey.capture());
  assertEquals("prefixexpirations:60000", SafeEncoder.encode(captureExpireKey.getValue()));
  assertEquals("key:{1}", SafeEncoder.encode(captureSessionKey.getValue()));
  ArgumentCaptor<byte[]> captureSessionExpireKey = ArgumentCaptor.forClass(byte[].class);
  verify(redis).del(captureSessionExpireKey.capture());
  assertEquals("com.amadeus.session:expire::test:{1}", SafeEncoder.encode(captureSessionExpireKey.getValue()));
}