package Ġio . hol unda . fun stuff . l umber gh ini . process . fn Ċ Ċ import Ġio . hol unda . fun stuff . l umber gh ini . process . fn . B pmn Model Instance Converter . process Definition Key Ċ import Ġio . hol unda . fun stuff . l umber gh ini . process . fn . B pmn Model Instance Converter . tasks Ċ import Ġio . hol unda . fun stuff . l umber gh ini . test . W or st Day Process Fixtures Ċ import Ġio . hol unda . fun stuff . l umber gh ini . test . W or st Day Process Fixtures . set Count Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . camunda . bpm . model . bpmn . B pmn Model Instance Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ internal Ġclass ĠB pmn Model Instance Converter Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġinternal Ġfun Ġ` create ĠB PM N Ġmodel Ġfrom Ġworst Tasks `() Ġ{ ĊĠĠĠ Ġval Ġb pmn : ĠB pmn Model Instance Ġ= ĠB pmn Model Instance Converter . create B pmn Model Instance ( ĊĠĠĠĠĠ ĠW or st Day Process Fixtures . process With Task 1 And Task 2 ĊĠĠĠĠĠĠĠ Ġ. add Task ( W or st Day Process Fixtures . task 1 ) ĊĠĠĠ Ġ) ĊĊĠĠĠ ĠassertThat ( bpmn . process Definition Key ()). isEqualTo ( W or st Day Process Fixtures . process Definition Key ) ĊĊĠĠĠ Ġval Ġtasks Ġ= Ġb pmn . tasks () ĊĊĠĠĠ ĠassertThat ( tasks ). contains Exactly In Any Order ( ĊĠĠĠĠĠ ĠW or st Day Process Fixtures . task 1 . set Count ( 1 ), ĊĠĠĠĠĠ ĠW or st Day Process Fixtures . task 1 . set Count ( 2 ), ĊĠĠĠĠĠ ĠW or st Day Process Fixtures . task 2 . set Count ( 1 ), ĊĠĠĠ Ġ) ĊĠ Ġ} Ċ } Ċ