Testing web service client

Hi,

Trying to test web service by mocking the web service as suggested here:
https://www.playframework.com/documentation/2.6.x/ScalaTestingWebServiceClients

Server.withRouterFromComponents() { components =>
				import Results._
				import components.{ defaultActionBuilder => Action }
				{
					case POST(p"/token") =>
						print("TEST 1")
						Action {
							Ok(Json.arr(Json.obj("access_token" -> "TOKEN TEST TOKEN TEST")))
						}
					case POST(p"/api/event") =>
						Action {
							Ok(Json.arr(Json.obj("access_token" -> "TOKEN TEST TOKEN TEST")))
						}
				}
			}
			{ implicit port =>
				WsTestClient.withClient { client =>
					val result = Await.result(app.injector.instanceOf[APIClient].buildEvent(user, DateTime.now(), EventType.Registration), 10.seconds)
					result must_== Seq("access_token")
				}
			}

Getting:
java.net.ConnectException: General SSLEngine problem (NettyConnectListener.java:168)

Any idea?