package Ġpl . alt kom . asc . lab . lambda . billing . billing Ċ Ċ import Ġorg . jetbrains . spe k . api . Spe k Ċ import Ġorg . jetbrains . spe k . api . dsl . describe Ċ import Ġorg . jetbrains . spe k . api . dsl . it Ċ import Ġorg . junit . jupiter . api . Assertions Ċ import Ġpl . alt kom . asc . lab . lambda . billing . billing . Gender Ċ import Ġpl . alt kom . asc . lab . lambda . billing . billing . Pe sel Ċ import Ġjava . time . LocalDate Ċ Ċ class ĠPe sel Test Ġ: ĠSpe k ({ ĊĊĠĠĠ Ġdescribe (" getting - birth date - from - pe sel ") Ġ{ ĊĊĠĠĠĠĠĠĠ Ġit (" should Ġreturn Ġdate Ġform Ġ 1 9 xx ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( LocalDate . of ( 1 9 8 3 , 4 , 2 1 ), ĠPe sel . get Birth Date From Pe sel (" 8 3 0 4 2 1 1 0 4 9 4 ")) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġit (" should Ġreturn Ġdate Ġform Ġ 2 0 xx ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( LocalDate . of ( 2 0 1 8 , 7 , 4 ), ĠPe sel . get Birth Date From Pe sel (" 1 8 2 7 0 4 7 9 6 1 7 ")) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġdescribe (" getting - gender - from - pe sel ") Ġ{ ĊĊĠĠĠĠĠĠĠ Ġit (" should Ġreturn Ġfemale ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( Gender . F EM ALE , ĠPe sel . get Gender From Pe sel (" 0 0 2 4 0 4 1 8 5 4 2 ")) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġit (" should Ġreturn Ġmale ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( Gender . M ALE , ĠPe sel . get Gender From Pe sel (" 1 8 2 7 0 4 7 9 6 1 7 ")) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ })