protected abstract void runTest(String url);
@Test
public void testPact() {
PactFragment fragment = createFragment(ConsumerPactBuilder.consumer(consumerName()).hasPactWith(providerName()));
final MockProviderConfig config = MockProviderConfig.createDefault();
VerificationResult result = fragment.runConsumer(config, new TestRun() {
public void run(MockProviderConfig config) {
try {
runTest(config.url());
} catch(Exception e) {
fail("error thrown: "+e);