Intro to testing Ktor controllers

Functional tests in Ktor – how to mock application server with TestApplicationEngine?