Ulises Cervino
02/03/2023, 2:18 PMMap liveBasketExists(Map _ignored_params) {
Map<String, Object> state = new HashMap<>();
InternalBasket internalBasket =
repository.createBasket(TestSupport.Repository.basketWithDefaults()).orElseThrow();
// the key in this state-map corresponds to the variable in the expression in the consumer
// test, i.e. in the
// example consumer test we have a call like .pathFromProviderState("/${basketId}", ...)
state.put("basketId", internalBasket.getBasketId());
return state;
}