Here you can find out how to create integration tests for RESTful service on the example of application shown in the article "Building REST service with Scala". To create the tests, I am going to use spray-testkit DSL, as it provides a simple way to test route logic for services built with spray-routing. Also, to keep everything up to date, I've updated the RESTful service built in the article to
![Scala REST API Integration Testing with Spray-testkit](https://cdn-ak-scissors.b.st-hatena.com/image/square/0ecba100b43a7882d35c107f8c663034b50a8606/height=288;version=1;width=512/https%3A%2F%2Fcdn1.sysgears.com%2Fimages%2Fblog%2Fbanners%2Fscala-rest-api-integration-testing-with-spray-testkit-06af0b595116a4971bfeeb45d8d812eb.webp)