@Override
    public void onEvent(Event event) {
        if (event instanceof ClientOperationEvent.ClientReleaseEvent) {
            handleClientDisconnect((ClientOperationEvent.ClientReleaseEvent) event);
        } else if (event instanceof ClientOperationEvent) {
            handleClientOperation((ClientOperationEvent) event);
        }
    }
@Test
    void testOnEvent() {
        Mockito.when(clientReleaseEvent.getClient()).thenReturn(client);
        clientServiceIndexesManager.onEvent(clientReleaseEvent);
        
        Mockito.verify(clientReleaseEvent).getClient();
        
        clientServiceIndexesManager.onEvent(clientOperationEvent);
        
        Mockito.verify(clientOperationEvent).getService();
        Mockito.verify(clientOperationEvent).getClientId();
    }