public boolean isLocallyPresent(final UUID accountUuid, final byte deviceId) {
    return displacementListenersByPresenceKey.containsKey(getPresenceKey(accountUuid, deviceId));
  }
@Test
  void testIsLocallyPresent() {
    final UUID accountUuid = UUID.randomUUID();
    final byte deviceId = 1;

    assertFalse(clientPresenceManager.isLocallyPresent(accountUuid, deviceId));

    clientPresenceManager.setPresent(accountUuid, deviceId, NO_OP);
    REDIS_CLUSTER_EXTENSION.getRedisCluster().useCluster(connection -> connection.sync().flushall());

    assertTrue(clientPresenceManager.isLocallyPresent(accountUuid, deviceId));
  }