Just looking at the pact jvm consumer junit test
https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-consumer-junit#using-the-base-consumerpacttest. Instead of configuring the pact test like so
```
@Override
protected RequestResponsePact createFragment(PactDslWithProvider builder) {
Map<String, String> headers = new HashMap<String, String>();
headers.put("testreqheader", "testreqheadervalue");
return builder
.given("test state") // NOTE: Using provider states are optional, you can leave it out
.uponReceiving("ExampleJavaConsumerPactTest test interaction")
.path("/")
.method("GET")
.headers(headers)
.willRespondWith()
.status(200)
.headers(headers)
.body("{\"responsetest\": true, \"name\": \"harry\"}")
```
is it possible to define the pact as a json file directly? e.g.
```
@Test
@PactFile("consumer-provider.json")
public void someTest() {}
```
where `consumer-provider.json` looks exactly like the pact generated, e.g.
```
{
"consumer": {
"name": "a-consumer"
},
"provider": {
"name": "a-provider"
},
"interactions": [
{
"description": "a valid get user request",
"providerState": "a user exists",
"request": {
"method": "GET",
"path": "/v1/api/users/ABC",
"headers": {
"Accept": "application/json"
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"external_id": "7d19aff33f8948deb97ed16b2912dcd3",
"username": "
",
"email": ""
}
}
]
}
```