public Page<ConnectionResponse> convertToConnectionResponse(Page<Connection> allConnections) {
        List<ConnectionResponse> convertedConnection = connectionMapper.toConnectionResponse(allConnections.getContent());
        return new PageImpl<>(convertedConnection, allConnections.getPageable(), allConnections.getTotalElements());
    }
@Test
    void convertToConnectionResponse() {
        Page<ConnectionResponse> result = connectionServiceMock.convertToConnectionResponse(getPageConnections());

        assertEquals(result.getTotalPages(), getPageConnections().getTotalPages());
        assertNotNull(result);
    }