fix the ExampleJavaConsumerPactTest to pass on JDK 6