For instance, this method:
@PactVerifyProvider("a product created event")
public MessageAndMetadata productCreatedEvent() throws JsonProcessingException {
ProductEvent product = new ProductEvent("id1", "product name", "product type", "v1", EventType.CREATED, 27.00);
Message<String> message = new ProductMessageBuilder().withProduct(product).build();
return generateMessageAndMetadata(message);
}