public static PactDslJsonRootValue valueFromProviderState ( String expression , Object example ) { PactDslJsonRootValue value = new PactDslJsonRootValue ( ) ; value . generators . addGenerator ( Category . BODY , "" , new ProviderStateGenerator ( expression ) ) ; value . setValue ( example ) ; return value ; }
Adds a value that will have it s value injected from the provider state