@Operation(summary = "Create the connection")
    @PostMapping(value = "", consumes = "application/json")
    public Connection create(@RequestBody Connection connection) {
        Connection connectionCreated = connectionService.create(connection);
        metadataProcessorService.startCollectMetadata(connectionCreated, new HashMap<>());
        return connectionCreated;
    }
@Test
    public void createConnection() {
        when(connectionServiceMock.create(any(Connection.class))).thenReturn(getNewConnection());

        Connection result = controllerMock.create(getNewConnection());

        verify(connectionServiceMock, times(1)).create(any(Connection.class));
        verify(metadataProcessorServiceMock, times(1)).startCollectMetadata(any(Connection.class), any(HashMap.class));
        assertNotNull(result);
    }