package Ġno . nav . hel se . op ps lag . ar be ids for hold Ċ Ċ import Ġcom . github . tom ake hur st . wire mock . client . Mapping Builder Ċ import Ġcom . github . tom ake hur st . wire mock . client . Wire Mock Ċ import Ġcom . github . tom ake hur st . wire mock . matching . Matches XPath Pattern Ċ import Ġno . nav . hel se . op ps lag . with Soap Action Ċ Ċ fun Ġfin n Ar be ids for hold Pr Ar be id st aker Stub ( ident : ĠString , Ġf om : ĠString , Ġtom : ĠString ): ĠMapping Builder Ġ{ ĊĠĠĠ Ġreturn ĠWire Mock . post ( Wire Mock . urlPath EqualTo ("/ a are g ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Soap Action (" http :// nav . no / t jen este / vir ks om het / ar be ids for hold / v 3 / Ar be ids for hold _ v 3 / fin n Ar be ids for hold Pr Ar be id st aker Request ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with RequestBody ( Matches XPath Pattern ("// soap : Envelope / soap : Body / ns 2 : fin n Ar be ids for hold Pr Ar be id st aker / parameters / ident / ident / text ()", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġa are g Namespace , ĠWire Mock . equalTo ( ident ))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with RequestBody ( Matches XPath Pattern ("// soap : Envelope / soap : Body / ns 2 : fin n Ar be ids for hold Pr Ar be id st aker / parameters / ar be ids for hold I Per i ode / f om / text ()", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġa are g Namespace , ĠWire Mock . equalTo ( f om ))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with RequestBody ( Matches XPath Pattern ("// soap : Envelope / soap : Body / ns 2 : fin n Ar be ids for hold Pr Ar be id st aker / parameters / ar be ids for hold I Per i ode / tom / text ()", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġa are g Namespace , ĠWire Mock . equalTo ( tom ))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with RequestBody ( Matches XPath Pattern ("// soap : Envelope / soap : Body / ns 2 : fin n Ar be ids for hold Pr Ar be id st aker / parameters / rap port ert S om Re gel ver k / text ()", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġa are g Namespace , ĠWire Mock . equalTo (" A _ ORD NING EN "))) Ċ } Ċ Ċ fun Ġh ent Ar be ids for hold H istor ikk Stub ( ar be ids for hold ID nav : ĠString ): ĠMapping Builder Ġ{ ĊĠĠĠ Ġreturn ĠWire Mock . post ( Wire Mock . urlPath EqualTo ("/ a are g ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Soap Action (" http :// nav . no / t jen este / vir ks om het / ar be ids for hold / v 3 / Ar be ids for hold _ v 3 / h ent Ar be ids for hold H istor ikk Request ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. with RequestBody ( Matches XPath Pattern ("// soap : Envelope / soap : Body / ns 2 : h ent Ar be ids for hold H istor ikk / parameters / ar be ids for hold Id / text ()", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġa are g Namespace , ĠWire Mock . equalTo ( ar be ids for hold ID nav ))) Ċ } Ċ Ċ private Ġval Ġa are g Namespace Ġ= Ġmap Of ( ĊĠĠĠĠĠĠĠ Ġ" soap " Ġto Ġ" http :// schemas . xml soap . org / soap / envelope /", ĊĠĠĠĠĠĠĠ Ġ" ns 2 " Ġto Ġ" http :// nav . no / t jen este / vir ks om het / ar be ids for hold / v 3 " Ċ ) Ċ