in src/it/java/com/epam/digital/data/platform/user/util/WireMockCustomizer.java [37:48]
public static void customizeGetAccessToken(WireMockServer mockServer, int status,
String filePath) throws IOException {
mockServer.
stubFor(post(urlEqualTo("/auth/realms/some-realm/protocol/openid-connect/token"))
.withRequestBody(equalTo("grant_type=client_credentials"))
.willReturn(aResponse().withStatus(status)
.withHeader("Content-Type", "application/json")
.withBody(
copyToString(
WireMockCustomizer.class.getClassLoader().getResourceAsStream(filePath),
StandardCharsets.UTF_8))));
}