package Ġcom . github . m aly 7 . support Ċ Ċ import Ġcom . github . m aly 7 . web . resource . amqp . ALLOW _ ACCESS Ċ import Ġcom . github . m aly 7 . web . resource . amqp . DEN Y _ ACCESS Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġkotlin . test . assertEquals Ċ Ċ fun ĠResponseEntity < String >. assert Denied Access () Ġ{ ĊĠĠĠ ĠassertEquals ( HttpStatus . OK , Ġthis . statusCode , Ġ" The Ġresponse Ġshould Ġbe Ġ 2 0 0 ĠOK ") ĊĠĠĠ ĠassertEquals ( DEN Y _ ACCESS , Ġthis . body , Ġ" The Ġuser Ġshould Ġbe Ġdenied Ġaccess ") Ċ } Ċ Ċ fun ĠResponseEntity < String >. assert Allowed Access () Ġ{ ĊĠĠĠ ĠassertEquals ( HttpStatus . OK , Ġthis . statusCode , Ġ" The Ġresponse Ġshould Ġbe Ġ 2 0 0 ĠOK ") ĊĠĠĠ ĠassertEquals ( ALLOW _ ACCESS , Ġthis . body , Ġ" The Ġuser Ġshould Ġbe Ġallowed Ġaccess ") Ċ } Ċ