public Connection create(Connection connection) {
        return connectionRepository.saveAndFlush(connection);
    }
@Test
    void createConnection() {
        when(connectionRepositoryMock.saveAndFlush(any(Connection.class))).thenReturn(new Connection());

        Connection result = connectionServiceMock.create(new Connection());

        verify(connectionRepositoryMock, times(1)).saveAndFlush(any(Connection.class));
        assertNotNull(result);
    }