public List<Connection> listWithOneConnection(Long id) {
        return connectionRepository.findListById(id);
    }
@Test
    void listWithOneConnection() {
        when(connectionRepositoryMock.findListById(anyLong())).thenReturn(new ArrayList<>());

        List<Connection> result = connectionServiceMock.listWithOneConnection(1L);

        verify(connectionRepositoryMock, times(1)).findListById(anyLong());
        assertNotNull(result);
    }