diff --git a/openapi-generator/templates/java/libraries/okhttp-gson/pom.mustache b/openapi-generator/templates/java/libraries/okhttp-gson/pom.mustache
index 9edb7943..e84ab132 100644
--- a/openapi-generator/templates/java/libraries/okhttp-gson/pom.mustache
+++ b/openapi-generator/templates/java/libraries/okhttp-gson/pom.mustache
@@ -317,6 +317,12 @@
${junit-version}
test
+
+ com.squareup.okhttp3
+ mockwebserver
+ 3.14.7
+ test
+
{{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}