@Operation(summary = "remove the connection")
    @DeleteMapping(value = "{id}")
    public void remove(@PathVariable("id") Long id) {
        Connection connection = connectionService.getConnectionById(id);
        connectionService.deleteConnectionById(connection);
    }
@Test
    public void removeConnection() {
        when(connectionServiceMock.getConnectionById(anyLong())).thenReturn(getNewConnection());

        controllerMock.remove(1L);

        verify(connectionServiceMock, times(1)).deleteConnectionById(any(Connection.class));
        verify(connectionServiceMock, times(1)).getConnectionById(anyLong());
    }