package Ġcare . better . platform . time . xml adapters Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . time . Duration Ċ Ċ /** Ċ Ġ* Ġ@ author ĠB ost jan ĠL ah Ċ Ġ*/ Ċ class ĠIS OD uration Adapter Test Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval ĠTEST _ DURATION Ġ= ĠDuration . of Hours ( 1 L ). plus Minutes ( 5 L ) ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠTEST _ DURATION _ RE PR Ġ= Ġ" PT 1 H 5 M " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Marshall () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġadapter Ġ= ĠIS OD uration Adapter () ĊĠĠĠĠĠĠĠ ĠassertThat ( adapter . marshal ( TEST _ DURATION )). isEqualTo ( TEST _ DURATION _ RE PR ) ĊĠĠĠĠĠĠĠ ĠassertThat ( adapter . marshal ( null )). isNull () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Un marshall () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġadapter Ġ= ĠIS OD uration Adapter () ĊĠĠĠĠĠĠĠ ĠassertThat ( adapter . un marshal ( TEST _ DURATION _ RE PR )). isEqualTo ( TEST _ DURATION ) ĊĠĠĠĠĠĠĠ ĠassertThat ( adapter . un marshal ( null )). isNull () ĊĠĠĠ Ġ} Ċ }