package Ġcom . sk el ter labs . events Ċ Ċ import Ġorg . joda . time . DateTime Utils Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Test Ċ Ċ class ĠProm otion Event Test Ġ: ĠEvent TestBase () Ġ{ ĊĊĠ Ġ@ After ĊĠ Ġoverride Ġfun ĠtearDown () Ġ{ ĊĠĠĠ Ġsuper . te ar Down () ĊĠĠĠ ĠDateTime Utils . setCurrent Millis System () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġwhen Calling To Custom Field Of Search Event _ thenReturn Search Event Map () Ġ{ ĊĠĠĠ ĠDateTime Utils . setCurrent Millis Fixed ( 1 0 0 _ 0 0 0 L ) ĊĊĠĠĠ Ġval Ġpromotion Event Ġ= ĠProm otion Event (" test - text ") ĊĠĠĠ Ġval Ġexpected Ġ= Ġmap Of ( ĊĠĠĠĠĠ Ġ" type " Ġto Ġ" promotion ", ĊĠĠĠĠĠ Ġ" timestamp " Ġto Ġ 1 0 0 _ 0 0 0 L , ĊĠĠĠĠĠ Ġ" text " Ġto Ġ" test - text ", ĊĠĠĠ Ġ) ĊĠĠĠ Ġassert Custom Field Equals ( expected , Ġpromotion Event . to Custom Field ()) ĊĠ Ġ} Ċ } Ċ