--- title: Testing REST API integrations using WireMock linkTitle: WireMock description: Learn how to test REST API integrations in a Spring Boot application using the Testcontainers WireMock module. keywords: testcontainers, java, spring boot, testing, wiremock, rest api, rest assured summary: | Learn how to create a Spring Boot application that integrates with external REST APIs, then test those integrations using Testcontainers and WireMock. toc_min: 1 toc_max: 2 tags: [testing-with-docker] languages: [java] params: time: 20 minutes --- In this guide, you'll learn how to: - Create a Spring Boot application that talks to external REST APIs - Test external API integrations using WireMock with both the JUnit 5 extension and the Testcontainers WireMock module ## Prerequisites - Java 17+ - Maven or Gradle - A Docker environment supported by Testcontainers > [!NOTE] > If you're new to Testcontainers, visit the > [Testcontainers overview](https://testcontainers.com/getting-started/) to learn more about > Testcontainers and the benefits of using it.