package Ġuk . gov . just ice . digital . h mp ps . calcul at erelease dates api . model Ċ Ċ import Ġorg . junit . jupiter . api . Assertions . assertEquals Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . time . LocalDate Ċ import Ġjava . time . temporal . Ch rono Unit Ċ Ċ internal Ġclass ĠSentence Calculation Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` Test Ġthat ĠSentence Calculation Ġinitial ises Ġcorrectly `() Ġ{ ĊĊĠĠĠ Ġval Ġsent enced At Ġ= ĠLocalDate . of ( 2 0 2 0 , Ġ 1 , Ġ 1 ) ĊĠĠĠ Ġval Ġduration Ġ= ĠDuration () ĊĠĠĠ Ġduration . append ( 1 L , ĠCh rono Unit . DAYS ) ĊĠĠĠ Ġval Ġoff ence Ġ= ĠOff ence ( LocalDate . of ( 2 0 2 0 , Ġ 1 , Ġ 1 )) ĊĠĠĠ Ġval Ġsentence Ġ= ĠSentence ( off ence , Ġduration , Ġsent enced At ) ĊĠĠĠ Ġval Ġdate Ġ= ĠLocalDate . of ( 2 0 2 1 , Ġ 1 , Ġ 1 ) ĊĠĠĠ Ġval Ġsentence Calculation Ġ= ĠSentence Calculation ( ĊĠĠĠĠĠ Ġsentence , ĊĊĠĠĠĠĠĠ 3 , ĊĠĠĠĠĠĠ 4 , ĊĠĠĠĠĠ Ġdate , ĊĠĠĠĠĠ Ġdate , ĊĠĠĠĠĠĠ 1 , ĊĠĠĠĠĠĠ 0 , ĊĠĠĠĠĠĠ 0 , ĊĠĠĠ Ġ) ĊĊĠĠĠ ĠassertEquals ( sentence Calculation . sentence , Ġsentence ) ĊĠĠĠ ĠassertEquals ( 3 , Ġsentence Calculation . numberOf Days To Sentence Expiry Date ) ĊĠĠĠ ĠassertEquals ( 4 , Ġsentence Calculation . numberOf Days To Release Date ) ĊĠĠĠ ĠassertEquals ( 1 , Ġsentence Calculation . calculated Total Ded uct ed Days ) ĊĠĠĠ ĠassertEquals ( 0 , Ġsentence Calculation . calculated Total Added Days ) ĊĠĠĠ ĠassertEquals ( date , Ġsentence Calculation . un adjusted Expiry Date ) ĊĠĠĠ ĠassertEquals ( date , Ġsentence Calculation . un adjusted Release Date ) ĊĠĠĠ ĠassertEquals ( LocalDate . of ( 2 0 2 0 , Ġ 1 2 , Ġ 3 1 ), Ġsentence Calculation . adjusted Expiry Date ) ĊĠĠĠ ĠassertEquals ( LocalDate . of ( 2 0 2 0 , Ġ 1 2 , Ġ 3 1 ), Ġsentence Calculation . adjusted Release Date ) ĊĠ Ġ} Ċ } Ċ