annotationclass PactVerification.annotationclass PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to 127.0.0.1. If no port is given, it will default to a random port.annotationclass PactVerification. Before each test, a mock server will be setup at given port/host that will provide mocked responses for the given provider. After each test, it will be teared down. If no host is given, it will default to 127.0.0.1. If no port is given, it will default to a random port. If you need to use HTTPS, use PactHttpsProviderRule