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);
}
}
});