public static void setExampleResponse(NativeWebRequest req, String contentType, String example) {
		try {
			req.getNativeResponse(HttpServletResponse.class).addHeader("Content-Type", contentType);
			req.getNativeResponse(HttpServletResponse.class).getOutputStream().print(example);
		}
		catch (IOException e) {
			throw new RuntimeException(e);
		}
	}
Sets example response.

@param req         the req
@param contentType the content type
@param example     the example
springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/java/test/org/springdoc/api/v30/app105/api/ApiUtil.java