Make JobClient an interface, change YarnJobClient to implement this interface. Add the wiring inside pact-client to allow submission to YARN. Missing: proper maven dependencies