public Connection findAllowedConnection(String entityId) {
        return connectionRepository.findAllowedByEntityId(entityId);
    }
@Test
    void findAllowedConnection() {
        when(connectionRepositoryMock.findAllowedByEntityId(anyString())).thenReturn(new Connection());

        Connection result = connectionServiceMock.findAllowedConnection("entityId");

        verify(connectionRepositoryMock, times(1)).findAllowedByEntityId(anyString());
        assertNotNull(result);
    }