package Ġuk . gov . just ice . digital . h mp ps . where about s . integration Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . time . LocalDate Ċ Ċ class ĠApp ointments IntegrationTest Ġ: ĠIntegration Test () Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` getApp ointments Ġvalid Ġcall Ġwith Ġoff ender Location Prefix Ġreturns Ġexpected Ġdata `() Ġ{ ĊĠĠĠ Ġpr ison Api Mock Server . stub Get Scheduled App ointments By Ag ency And Date (" M DI ", Ġ" A 1 2 3 4 AA ") ĊĠĠĠ Ġpr ison Api Mock Server . stub Get Off ender Book ings (" A 1 2 3 4 AA ", Ġ" M DI - 1 - 2 ") ĊĊĠĠĠ Ġweb Test Client . get () ĊĠĠĠĠĠ Ġ. uri Ġ{ ĊĠĠĠĠĠĠĠ Ġit . path ("/ app ointments / M DI ") ĊĠĠĠĠĠĠĠĠĠ Ġ. query Param (" date ", ĠLocalDate . of ( 2 0 2 0 , Ġ 1 2 , Ġ 2 5 )) ĊĠĠĠĠĠĠĠĠĠ Ġ. query Param (" off ender Location Prefix ", Ġ" M DI - 1 ") ĊĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ. headers ( set Headers ()) ĊĠĠĠĠĠ Ġ. exchange () ĊĠĠĠĠĠ Ġ. expect Status (). is Ok ĊĠĠĠĠĠ Ġ. expect Body () ĊĠĠĠĠĠ Ġ. json Path (" $. size () "). isEqualTo ( 1 ) ĊĠĠĠĠĠ Ġ. json Path ("[ 0 ]. off ender No "). isEqualTo (" A 1 2 3 4 AA ") ĊĠ Ġ} Ċ } Ċ