public PactDslJsonArray valueFromProviderState ( String expression , Object example ) { generators . addGenerator ( Category . BODY , rootPath + appendArrayIndex ( 0 ) , new ProviderStateGenerator ( expression ) ) ; body . put ( example ) ; return this ; }
Adds an element that will have it s value injected from the provider state