package Ġcom . open fa as . model Ċ Ċ import Ġorg . assertj . core . api . Assertions For Interface Types . assertThat Ċ import Ġorg . junit . jupiter . api . Test ĊĊ Ċ class ĠResponse Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Response Header Set GetValue () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= ĠResponse ( headers Ġ= Ġmap Of (" X - Key " Ġto Ġ" value ")) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . headers [" X - Key "]). isEqualTo (" value ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Response Header GetValue Key Miss IsNull () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= ĠResponse () ĊĠĠĠĠĠĠĠ ĠassertThat ( response . headers [" No - Such - Key "]). isNull () ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Response Get Set ContentType () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= ĠResponse ( contentType Ġ= Ġ" application / json ") ĊĠĠĠĠĠĠĠ ĠassertThat ( response . contentType ). isEqualTo (" application / json ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Response StatusCode DefaultValue () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= ĠResponse ( statusCode Ġ= Ġ 2 0 0 ) ĊĠĠĠĠĠĠĠ ĠassertThat ( response . statusCode ). isEqualTo ( 2 0 0 ) ĊĠĠĠ Ġ} Ċ }